Facebook SDK iPhone, friends list - iphone

I have one question.
I want to share photos from my application via facebook.
There is no problem to share it on my wall, but is there any possibility to share it on friend's wall ?
Something like click share button, log in, choose friends and share it on their wall ?
I have been searching application in appstore which can do that, but i found nothing.

You can post to a user's friend's feed using the Graph API, assuming the user granted you the relevant (publish_stream) permissions.
POST /[friend]/feed
message=hello&picture=http://...
I should stress strongly that users consider this very spammy behavior for apps, and it is not generally recommended.
Source: https://developers.facebook.com/docs/reference/api/post/

Related

Code for inviting friends

I need a code for inviting friends to a fanpage.
http://developers.facebook.com/docs/reference/dialogs/requests/
This is linking to the website. Is it possible to link to my fb fanpage?
Actually if you read the whole documents, that Request feature is for Facebook Application only. But here's a work around :
Create a Facebook Application
Have a great content where everyone wants to have
Put a Like Gate before they can access your great content
You can still use the App Request for your app while the user likes your page

What are my options in terms of posting on a user's friend's wall, on behalf of either the user or my app?

I have an app that a user signs up for that needs to then notify a friend of said user about an upcoming event.
I'm trying to figure out what my options are for how to make this work. In an ideal world, my app would would be able to post to the friend's wall with a custom message (written by the user) at some predetermined time in the future. However, I'm not seeing anything in the API for posting on behalf of a user to one of their friend's walls, so, I'm open to suggestion.
TIA
You can post to a user's friend's feed using the Graph API, assuming the user granted you the relevant (publish_stream) permissions.
POST /[friend]/feed
message=hello...
Users generally consider this very spammy behavior for apps, and so it is not particularly recommended.
Source: https://developers.facebook.com/docs/reference/api/post/

How to make wall posts made by users on app's facebook page

Is there anything I need to do to make posts users make on their wall via a custom ios application using it's own facebook app id, also appear on app's (facebook app it uses I mean) own facebook page?
I would expect this to appear automatically but it doesn't seem to be the case.
In order to read one's Facebook wall, you need the access token to authenticate reading. This will give you access to all non-public wall posts. From this, you can pass the newly posted content to your page through the feed action.
Reference: http://php-academy.blogspot.com/2011/04/how-to-post-from-facebook-app-to.html
Enjoy and good luck!

Invite Friends Modal for Website off of Facebook

How do you allow your Facebook Connected users to invite their Facebook friends to your website?
All previous answers on SO are outdated referencing that it was previously possible with fb:multi-friend-selector, but since FBML will soon be deprecated, its not an option worth entertaining.
The only option I see now is to create a canvas app that redirects to my website but I would assume this is not permissible since only Canvas or Mobile apps can use the Requests dialog. I could build my own modal by getting the users friends and then sending them a message directly--also probably not permissible.
Nikolay did a fair assessment here, but was not provided a solid answer. Is Facebook locking down multiple friend invites and leaving only newsfeed posts and likes to webpages?
I use Social button like recommend and implement it with my site. ref to https://developers.facebook.com/docs/plugins/
So, we looked and it appears you cannot use the Invite Friends modal unless you are a mobile or Facebook canvas app.
We did, however, come up with a solution. Using the Open Graph API (see Publishing) and the publish_stream extended permission, you can post directly to a user's friend's wall. It cannot be a private message (publish_stream does not allow you to change the privacy of the message) but it does allow user's friend to get a notification of the post.
You can see it working in some of our developer's games on www.pokki.com that are supporting our Pokki Games API. We came up with a nice modal that shows the user what the message they'll be posting looks like. This puts the user in control so they can click on their friend in a list of all their FB friends and makes the message more genuine (rather than automatically spamming all their friends with disingenuous messages).

Retrieve users friends for tagging

How does one retrieve a users friends using facebook connect so that a user can tag their friends in a post?
I am using sharekit to post images to a users wall, but I want to also add the option where a user can tag friends in an image before posting.
How does one allow tagging in an iOS app?
I believe that Facebook Connect is too lightweight for that; it is designed for fairly simple interactions hosted on 3rd party (non-Facebook) site. I think you will have to build a Facebook App to do what you describe.