Facebook Wallposting fan site from C # app

I have the following task:

I have a fan page for an apartment rental company. They would like to automate their fan page every time a new apartment is added to the system.

The system is developed in C # ASP.NET 3.5.

I downloaded the C # Facebook API from codeplex.

Has anyone done this or knows how to do this?

UPDATE:

So far I have tried the following:

        FacebookSession session = new Facebook.Session.ConnectSession(myKey,mySecretKey);

        Stream stream = new Stream(session);
        stream.Publish("Testing", null, null, null, 107010519323711);

I get a null Exception link when calling Stream.Publish

+3
source share
4 answers

The simple answer is to use an RSS graffiti page . It will update your page profile from the RSS feed you created.

+1
var _connectSession = new ConnectSession(API_KEY_HERE, FACEBOOK_SECRET_KEY_HERE);
if (_connectSession.IsConnected())
{
    var _facebookApi = new Api(_connectSession);
    _facebookApi.Stream.Publish("Your text here", null, null, string.Empty, USER_ID_OR_PAGE_ID_TO_TARGET);
}

. , . "Facebook Connect" , , , .

0

I'm out of work here. I made an RSS feed and submitted it to an application called RSS Grafitti. Very simple and works well.

0
source

This link should help.

http://blog.theunical.com/facebook-integration/simple-5-steps-to-publish-on-a-facebook-wall-using-dotnet-c/

To allow everything you want to do, you will have to request advanced permissions in javascript to connect facebook.

0
source

Source: https://habr.com/ru/post/1738024/


All Articles