I have a website which uses the web(Social) plugin for facebook comments for each post/article on the website.
On my iOS app, the same are presented in a webview.
The users on the app are logged in with Facebook but I can't find a way to enable them to post comments.
I looked up the OpenGraph documentation but it doesn't say anything about this.
How is it possible to maintain a relation between the facebook object on the web and the app and how do I show the people the option to comment?
I am looking for some advice on the best approach to achieve posting to a users wall from either the IOS App or my server.
Background
My app is currently available and incorporates the Facebook SDK. At the minute there is a custom social network in the app where users can join via Facebook Connect and share their edited photos. The user in the app uploads their photos to my server and then the app will fetch them for other users to see i.e. (latest, categories) etc.
I am looking at creating a web based viewing platform, think instagram where the users can also see their photos.
Goal
At the point of upload from the app I want to be able to post to the users friends on Facebook with a link to the web based image. I am unsure whether or not to send the notification from the app or post it from the server.
Can someone point out what it is that I need to do to achieve the above? I would imagine that I need to ask for extended permissions and then post an open graph notice. Is this correct?
We have a facebook account. That account 'Liked' 3 open facebook pages. When you login to that facebook account from your browser you can ofcourse see all the posts from those 3 pages on your news feed.
What I want to know is - can I somehow fetch all the data I see on my accounts news feed?
Im not asking how to do it, just is it possible.
I was doing some research, and on facebook.developers they do mention about nodes, which can be users or groups, but it is unclear to me are those groups that I made, so when I login to my mobile app i Actually login with that group account, or they meant that I can get data or other groups out there ?!
Facebook has documentation using FQL queries to GET the users news feed, take a look here
https://developers.facebook.com/docs/reference/fql
What you are looking for is called stream...
I want to get list of my friends from Facebook who are not users of my app, and be able to invite them.
Using FBWebDialogs I can pick users, but I'm wondering how foursquare did it?
Screenshot:
There is option of frictionless requests.
On Facebook developer site they mentioned in section of Invites and Requests
We touched on a scenario where users exchange requests back and forth. If this scenario is typical in your game, it can be a bad user experience to force them through the request dialog every time they want to send a request. The solution for this is frictionless requests.
Frictionless requests let users send requests to friends from an app without having to click on a pop-up confirmation dialog. When sending a request to a friend, a user can authorize the app to send subsequent requests to the same friend without another dialog. This streamlines the process of sharing with friends.
For more reference see Facebook Invites and Requests
You are asking two questions here:
How to invite Facebook friends without web dialogs?
Unfortunately, the web dialogs you are referring to are the best way to send invites to friends. There was a time when we had to resort to ugly hacks just to get this functionality in applications. Facebook added this functionality to iOS SDK after developers created bug reports and were literally behind them.
Get a list of friends who are not using the app and invite them
Foursquare IMO is not using the requests API. What they do is, whenever somebody links their Facebook account to their Foursquare account they make a note of the users friends who are using/not using the app. This is possible if the user grants the app permissions.
Then in the invite screen, they simply build a UITableView with list of friends who they think are not using the app. When you tap Invite they will just send an email invitation and not the Facebook request you are referring to.
I think FourSquare syncing the user's friend list(friend ids) to its own server.. Then after they are checking it to create the custom interface like the screen shot you shared.
Maybe I didn't get the question right, but from what I know after you tap the invite button on Foursquare the Facebook invite dialog (apprequest) will pop up.
In general this dialog will let you select friends if you didn't specify any friends ids before presenting it, or show you the selected friends like in Foursquare example.
There is an API to get your FB friends, so it's possible for your server to check witch of then already has the app...
I've been researching this for a while and the main solution I have found is frictionless requests, as Rahul Patel noted. You can do a direct request to the graph API and see who has your app installed.
From there you could fairly easily implement any sort of filtering. For example, using the Friend Picker UI Control and implementing the method friendPickerViewController:shouldIncludeUser: and checking against a list of facebook ids who are not on the app that you cache somewhere else in your application and actively update it (for example in a simple core data model that is updated when appDidFinishLaunching), returning no if the user is not displayed. This would only allow users to select individuals who are not on the app, and then you could send a request to them under the hood with frictionless requests.
I do think that it is not a great idea to spam people, however, without at least allowing them to check the names of their friends, or see who they are.
Here is my task. I have some images/photos, you can view them in my application also you should be able to like/unlike them and see how many other people have already like. I use iOS SDK for logging in with Facebook credentials.
To like some object or get it likes number you should have some facebookID. So my question is where should I post my images to get that ID?
I have found two ways of solution my task.
First one is to use iOS Facebook SDK. Then you have to post your photos and video somewhere to get IDs. I use special facebook page to contain all my content.
The other one is to use Facebook Open Graph. For this approach each content item should have a separate page with facebook tags. To like is you should use POST request like this:
me/og.likes?object=http:\\url.to.your.content.item