使用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.

Facebook上是否可以公开您的应用?

我不记得Facebook是否可以选择该选项-我认为确实可以.

我知道您可以为其创建应用程序的其他几个网站也有类似的选择.

通常,当您首次创建应用程序时,它们默认为仅对您可用.

我记得Facebook拥有测试人员的概念,您可以为该应用程序定义测试人员-大概是为了使该应用程序可供更多但数量有限的人使用.

某种意义上说,在开发应用程序时,您希望仅对自己或数量有限的测试人员可用.然后,当您准备将其发布给大众时,您可以更改设置,任何人都可以使用它.

Flickr做到了这一点,尽管我也通过Facebook做到了.我目前无法在Facebook上找到该选项-但后来我再也找不到在Facebook上的任何选项.检查您的应用程序上的各种设置,看看是否没有类似的东西.
Is there an option on Facebook to make your app public?

I can''t remember if Facebook has that option or not -- I thought it did.

I know that several other sites that you can create apps for have a similar option.

Normally when you first create an app they default to only being available to you.

As I recall Facebook has the notion of testers that you can define for that app -- presumably to make the app available to a larger but limited number of people.

Kind of make sense that while you are developing an app you want it to be available only to yourself or a limited number of testers. Then when you are ready to release it to the public in general, you change the setting and anyone can use it.

Flickr does this, and I though Facebook did it as well. I can''t find the option on Facebook at the moment -- but then I can never find any options on Facebook. Check your various settings on your app and see if there isn''t something like this.