简体   繁体   中英

post on friends wall, graph api IOS

I searched a lot over the web but I didn't fine a working way to post on friends wall over the graph api.

I want to post message on friends wall through the app.

first time get friend get friend list

[_facebook requestWithGraphPath:@"me/friends" andDelegate:self];

then select friend and post his/her wall

 [_facebook requestWithGraphPath:@"frined_ID/feed" andParams:params andHttpMethod:@"POST" andDelegate:self];

Also make sure that you have the publish_stream permission enabled. Here are the other permissions https://developers.facebook.com/docs/authentication/permissions/#user_friends_perms

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM