Home how to post facebook fan page wall
Reply: 1

how to post facebook fan page wall

AndroidAccount
1#
AndroidAccount Published in 2018-01-10 09:41:03Z

I tried to post image in facebook fan page.

I am using below code:

FBSDKGraphRequest *request = [[FBSDKGraphRequest alloc]
                              initWithGraphPath:@"/facebookPage_ID/photos"
                              parameters:@{ @"url": @"https://dncache-mauganscorp.netdna-ssl.com/thumbseg/378/378006-bigthumbnail.jpg",}
                              HTTPMethod:@"POST"];
[request startWithCompletionHandler:^(FBSDKGraphRequestConnection *connection, id result, NSError *error) {
    // Insert your code here
}];

Current image posts to facebook page successfully but image "did not post in facebook page wall" is shown in visitor post.

I want to show image in facebook page wall.

luschn
2#
luschn Reply to 2018-01-10 10:04:03Z

You need to use a Page Access Token instead of a User Access Token:

  • https://developers.facebook.com/docs/facebook-login/access-tokens/
  • http://www.devils-heaven.com/facebook-access-tokens/

The steps:

  • Get a User Token with the manage_pages and publish_pages permissions
  • Use /page-id?fields=access_token to get a Page Token for a specific Page
You need to login account before you can post.

About| Privacy statement| Terms of Service| Advertising| Contact us| Help| Sitemap|
Processed in 0.294942 second(s) , Gzip On .

© 2016 Powered by mzan.com design MATCHINFO