Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

facebook graph api how to post page wall

i little speak english

i want create feed (post, note, link) to page wall ANY TIME (like offline_access) with new graph api

What should I do for it , what permissions should

thank you in advance.

like image 357
alioygur Avatar asked Mar 12 '26 13:03

alioygur


1 Answers

  1. create facebook app
  2. take appid
  3. copy this link to browser

    https://www.facebook.com/dialog/oauth?client_id=appid&redirect_uri=canvasurl&scope=manage_pages&response_type=token

provide appid and the url u given in canvas url(eg:http://localhost/web)

  1. redirected url u can see access token.take that access token value.

  2. Facebook_Graph_Toolkit.GraphApi.Api x = new Facebook_Graph_Toolkit.GraphApi.Api(accesstoken);

        string id = x.PostFeedToTarget("pageid", "hi test");
    
like image 87
Rakesh Avatar answered Mar 14 '26 08:03

Rakesh



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!