I have successfully implemented FBGraphAPI in my iOS app. Here, after logged in , the FB app(I created earlier & gave the app ID in my code) installed and I can POST text or others(image, file etc.) on my wall with the app name. Just Like below,
MY_PROFILE_NAME
about an hour ago via APP_NAME.
Now, I want to POST this same 2 same with MY_PROFILE_NAME & APP_NAME but not on my wall. I want to POST it on another specific wall. This means that whoever log on through my app with their ID and make POST, will be POSTED on that specific pre-defined wall.
I don't know that is it possible or not ??? Plz, help me out...
You can't anymore. Facebook removed the ability to post to friends walls via Graph API:
https://developers.facebook.com/roadmap/completed-changes/#february-2013
Removing ability to post to friends walls via Graph API
We will remove the ability to post to a user's friends' walls via the Graph API. Specifically, posts against [user_id]/feed where [user_id] is different from the session user, or stream.publish calls where the target_id user is different from the session user, will fail. If you want to allow people to post to their friends' timelines, invoke the feed dialog. Stories that include friends via user mentions tagging or action tagging will show up on the friend’s timeline (assuming the friend approves the tag). For more info, see this blog post.
Related
In swift 4 I am sharing a post to my Facebook feed using the Open Graph API. This successfully posts to my feed, but other users in my friends list can't see the share post, only I can - even though the post is set to public.
Is there anything else I need to do for other users to see the post?
Is it still in sandbox mode? You need to set the Facebook app live, then other users will be able to see the share.
I am using Koala in a Rails app to get a user's friends for a simple tagging interface.
Some time back, Facebook changed the API (v2.0) such that this end point now returns a hashed ID, rather than the friend's FB ID. I've just started working with this endpoint for the first time since the change and am wondering, is it still possible to correlate an FB taggable_friends with a user of my app.
For example, within my app a user creates an event she attended, and now wants to tag friends she was with. The taggable_friends API allows taggings to be pushed to FB, but how do I also represent that tagging within my app?
The taggable_friends endpoint returns basic details such as name and avatar, so I could just store and display those. But if the friend is also a user of my app, and perhaps has a different avatar here, I'd like to display the details they have set in the app rather than FB details.
Is there any way to cross reference taggable_friends with local user records under the new API?
The tagging token is not valid forever, so you cannot cross-reference users. It would only be possible by name, but that is not reliable since users can change their name or two users can have the exact same one.
In other words: No, it is not possible.
I'm looking for doing a tableview which allow you to select one facebook friends and be able to send him a message to his wall later. The thing is that i tried /me/friends but it returns only the friends which use the same app...and it's not really usefull then.
I also tried /me/taggable_friends but it returns me an id for tag the friend and doesn't work for sending a message...
The last one i didn't try is /me/invitable_friends since it's not a game...but i guess it's also using an id only for invitation...
So is there a way to get the list of all the friends of facebook and get there ids ?
thanks !
That isn't supported anymore. There doesn't appear to be a simple way to grab all of a user's friends. You could use /user/invitablefriends, but that comes with a whole host of caveats. From the docs:
A list of friends that can be invited to install a Facebook game.
The Invitable Friends API is only available to apps classified as Games, which also have a Canvas presence. This API is not available in v1.0. It may be called by mobile games as long as they also have a Canvas presence.
The Invitable Friends API is only available to apps classified as Games, which also have a Canvas presence. This API is not available in v1.0. It may be called by mobile games as long as they also have a Canvas presence.
Since Graph API v2.0, /me/friends returns a person's friends who also use the app. You may use the Requests Dialog to invite people to play a game. However, if you want to build a custom multi-friend selector within your game, you need to use call /me/invitable_friends which returns a ranked list of a person's friends who do not play the game, along with a token which can be passed to the Request Dialog in order to invite them. Read our guide on using the Invitable Friends API.
Additionally, posting to another user's wall cannot be done through the Facebook SDK anymore. You can post to your own wall and you can tag other users, but you can't post directly to their wall anymore.
Is it possible to post on friend's wall using the standard feed dialog or I have to create my own dialog for this?
UPDATE:
I know that it is possible to post to a friend's wall directly using requestWithGraphPath. But I'm trying to figure out if I can use the facebook dialog for this. For example Draw Something seems to be doing just that (see screenshot below). However, I tried sending 'target_id' as well as 'to' and neither works. Does anybody know how to do that?
I found the solution. Just add "to" parameter with ID of the user you want to post to. I tested it works.
UPDATED ANSWER :
facebook annaunced that by 6.06.2013 it will not be possbile to post a friends wall via GraphAPI
https://developers.facebook.com/roadmap/#february-2013
Removing ability to post to friends walls via Graph API We will remove
the ability to post to a user's friends' walls via the Graph API.
Specifically, posts against [user_id]/feed where [user_id] is
different from the session user, or stream.publish calls where the
target_id user is different from the session user, will fail. If you
want to allow people to post to their friends' timelines, invoke the
feed dialog. Stories that include friends via user mentions tagging or
action tagging will show up on the friend’s timeline (assuming the
friend approves the tag). For more info, see this blog post.
This seems to be a very similar to iOS Development: How can I get a Facebook wall post to show in the friend's news feed?
Maybe that will help, as I think #kgutteridge has the right answer.
I've read over some of the developer material and have not seen a way to have an application send facebook users personalized wall posts. For example, FB users who likes "Mustangs" could receive a post from my application when there is news specifcally about Mustangs. However, FB users who didn't select Mustangs would not receive the post. Is there a way to do this on the FB platform for applications?
FYI - The only success I have had is sending a post to a user which appears to have been sent from the user as if the user is posting to themselves. Only upon close inspection can one find the text "via application xyz" next to the post time.
Thanks for taking the time to read and respond.
Yes, you can do this with any of the frameworks. See https://developers.facebook.com/docs/sdks/ Also study up on the Graph API (pay attention to the from attribute of a feed item, testing it out using the graph API Exporer: https://developers.facebook.com/tools/explorer