Skip to content Skip to sidebar Skip to footer

Can We Post Photos On Friends Wall Using Graph Api

Is it possible to upload photos on friends wall? The documentation never mentioned that! but its happening. I am able to post to the /friend_id/photos connection. I am actually run

Solution 1:

Update 2: This is indeed possible (is it a bug?) the same regular way.

But seems that posting of photo to other user's /photos connection behave very differently from posting to /me/photos. Here are some of the facts about posting to /FRIEND_ID/photos:

  1. Every photo published that way creates separated album named Posting User's photos (that's it uploaded photos will never be grouped and there is no way to see all of them in single place).
  2. That photo will not be visible in albums of either user or friend, but only will be seen/accessible via feed/timeline.
  3. And for sure this is only working if you able to post on that friend's feed

So it really behaves just like any other content posted to friend's feed.

I would say if you not rely on album functionality and persistance of those photos and only want to "share" photo on friend's wall, go for it (unless it's proven to be bug).


TL;DR;No you cannot post photo to friend's /photos connection. Well, you can post photo to friend's /photos connection but it will not behave the same way if posted to your's /photos.

According to documentation of photos connection for user:

Create You can post photos to a user's Wall on their behalf by issuing an HTTP POST request to PROFILE_ID/photos with the publish_stream permissions and the following parameters.

Also according to documentation of photo object:

https://graph.facebook.com/USER_ID/photos - The photo will be published to an album created for your app. We automatically create an album for your app if it does not already exist. All photos uploaded this way will then be added to this same album.

So generally speaking you trying to upload photo to other user's album but you may only post photos to your profile (or to page if using access_token for page).

You may however post to feed of other user (for example post may or may not have picture as attachement, which isn't the same as photo).

Update: Photos may only be uploaded to /USER_ID/photos than USER_ID is the same as me (owner of access_token).

Solution 2:

Is my app restricted to some graph actions?

There’s some places where FB say in the docs or developer blog posts, “If you misuse feature xy, your app’s ability to use it may be revoked” (not literally; I’m paraphrasing here, but something like that).

So it’s absolutely possible, that FB revoked the ability to post photos to friend’s walls specially for your app, because too many users receiving photos on their walls this way have marked them as “spam”.

(“Revoking a permission” is maybe not the exactly correct wording here; I think it’s more likely the Graph API accepts the requests made from your app in the first place, but then silently filters it out in the back; that would also explain why you not get any errors.)

Post a Comment for "Can We Post Photos On Friends Wall Using Graph Api"