开发者

Add Facebook poll over Graph API?

Does anyone know if it's possible to add one of the new Facebook "Question" polls through the Graph API? If so, how?

I did my best to Google and check through the documentation but failed rather hard -- Googling "Facebook question API" clearly is a terrible idea.

I didn't see it in the doc开发者_StackOverflow中文版umentation but I know the docs sometimes lag behind actual functionality. Also, I could easily have missed it.


Since questions themselves are out of date, creating a question via the Graph API is now deprecated and no longer supported.


You can now write questions to the Graph API by issuing an HTTP POST to https://graph.facebook.com/PROFILE_ID/questions with the question content.

For example:

curl -F 'access_token=...' \
     -F 'question=What is your favorite color?' \
     https://graph.facebook.com/me/questions

Full how-to here: https://developers.facebook.com/blog/post/635/


Facebook Questions are able to be read by the graph API.

Update: they also just announced that you can now create them via the API as well.


FYI - This has been deprecated as of Graph 1.0 https://developers.facebook.com/docs/graph-api/reference/v2.0/question

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜