API将消息发布到Facebook墙

API将消息发布到Facebook墙

本文介绍了使用Graph API将消息发布到Facebook墙的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



我的任务是应该将消息发布到Facebook用户墙...

我正在使用Graph API.我的问题是当我提供凭据时我可以发布消息,但是如果其他用户尝试发布消息"它抛出403禁止的错误"

我遵循的步骤,

1.我已经使用我的凭据创建了一个应用程序,所以我得到了AppId,AppSecret.

2.我能够获得访问令牌

3.我使用 apis.PostFeed(strMessage)这种方法将其张贴到墙上

4.但是如果我使用我的凭据,我可以发布一条消息,如果其他人使用他们的凭据,它会显示上述错误...


请帮助我,这是什么原因以及如何解决它.


在此先感谢您.

Hi ,

I have a task where i should able to post a message to the facebook users wall...

I am using Graph API. My problem is that i can able to post a message when i give my credentials but if some other user try to post a message "It throws 403 Forbidden error"

Steps i followed,

1.I have created an application using my credentials , so i got AppId, AppSecret.

2.I am able to get access token

3. using apis.PostFeed(strMessage) this method i am posting to wall

4.But if i used my credentials i can post a message else if some one else uses their credentials it says above mentioned error...


Plz help me in this what would be the reason and how to resolve it.


Thanks in advance.

推荐答案


这篇关于使用Graph API将消息发布到Facebook墙的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

08-15 19:07