开发者

Graph API end point to get the new "per-app post privacy" controls

A facebook user can now specify post privacy on per-application basis. This is explained by facebook on their blog.

In my web application I let people specify privacy settings while posting to their news feed. If a user has specified rather restrictive privacy than the one with he is posting to, facebook will enforce the restrictive settings as specified by user.

This results in bad user experience. I want to know if there is a way, preferably a Graph API end point, that lets me know this setting for a user. If I could fetch this information from Facebook, I could show a proper alert message, 'that to use a rather less restrictive privacy settings, (s)he will have to change his/her application specific privacy settings'. Or I could show only more restrictive privacy settings to the user while posting something in my UI.

Any pointer to where Fa开发者_Go百科cebook has documented this new feature from developer point of view in details is also appreciated.


I believe the privacy_setting table (available via FQL) provides what you're looking for.

https://developers.facebook.com/docs/reference/fql/privacy_setting/

*An FQL table that returns the default privacy settings that a user has set for an app. To read the privacy table you need the following permissions: User access_token The data returned is for the user and the application associated with the given access token. Example Select the default settings you have set for this app (try this query for a test application): SELECT name, value, description, allow, deny, networks, friends FROM privacy_setting WHERE name = 'default_stream_privacy'*

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜