简体   繁体   English

张贴在朋友的墙上,图api IOS

[英]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. 我在网上搜索了很多但是我没有通过图表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. 还要确保已启用publish_stream权限。 Here are the other permissions https://developers.facebook.com/docs/authentication/permissions/#user_friends_perms 以下是其他权限https://developers.facebook.com/docs/authentication/permissions/#user_friends_perms

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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