Derek Gebhard
Derek Gebhard

Reputation: 937

How do I check if a user can write on a friends wall?

I want to know up front whether I will be able to write on a wall of a user's friend using the Php library.

Currently, I check to see if the Php call throws an exception (due to the user disabling wall, etc) to know if it succeeded but I was wondering if there is anyway to check up front without trying to post on the wall?

Upvotes: 1

Views: 42

Answers (1)

DMCS
DMCS

Reputation: 31870

Here's how https://graph.facebook.com/fql?q=SELECT can_post FROM user WHERE uid=FriendId&access_token=ValidUserAccessToken

See: http://developers.facebook.com/docs/reference/fql/user/ for more information

Upvotes: 0

Related Questions