Installing Facebook SDK - iPhone - iphone

I've stuck on this for a while... How do I install the Facebook SDK??
I imported a group called FBConnect that contains 9 header files (that's all I've done), but I find all of these tutorials telling me to create an object like this...
Facebook *facebook;
But I don't have a Facebook class at all... How can I do this in my iPhone app/project? Below is what I really want to do and this is all...
http://stackoverflow.com/questions/6638955/facebook-ios-sdk-get-list-of-friends

If you downloaded the official SDK from this link you should follow this tutorial. It has the Facebook class and all you need to fetch the friends list.

Related

Custom multi friend selector Facebook Unity3d

I want to make sure about can we make custom multi friend selector of facebook in unity ?
I got the multi friend selector link . but there is no reference code regarding unity.
So if anyone has tried that feature then help me and share here.
Thanks..
Will you can get friends list using one of my plugins (Android Native or Mobile Social), you will also find friend list implementation example inside, here is example scene screenshot:
http:// i.stack.imgur.com/68y5R.jpg
And in case you do not want to use paid solutions you can get free Unity FB SDK for here.
https:// developers.facebook.com/docs/unity/downloads?locale=en_GB
And use
FB.API("/me?fields=friends.limit(10).fields(first_name,id,last_name,name,link,locale,location)", Facebook.HttpMethod.GET, FriendsDataCallBack);
To get your friends data. More info:
https:// developers.facebook.com/docs/graph-api/reference/v2.2/user/friends?locale=en_GB
P.S. Sorry for url formats. I ma new here, and can not add more than 2 links to my replay

Built-in Like Button - Facebook SDK 3.0

Does anybody happen to know a good tutorial on placing the ‘I like it’ button into the application?
I’m especially interested in Facebook SDK 3.0 and the so-called Built-in Like button.
So far, I’ve been searching through google and stackoverflow but I haven't found anything about SDK 3.0.
Publishing a built-in like is very similar to publishing a custom Open Graph action. The best resource for learning about publishing built-in likes is Facebook's reference page:
https://developers.facebook.com/docs/opengraph/actions/builtin/likes/
Please see this post regarding likes and this post to see an alternative of adding a like button.
Ideally you could create a html iframe that links to the page. obviously this would open up the webpage to the link of the facebook like button. atm i believe that's how temple run achieve this. does the trick. They're getting many likes from users directed from the ios app temple run itself.

facebook like page with url to application

I have been trying to create a Facebook like-page with a like linke/button to my iphone application. Like Camera+ (http://www.facebook.com/CamPl.us). I just can't find anyway how to make a page like camera+ - Any help?
I found out that this feature is outdated or disabled from facebook :-/
https://stackoverflow.com/questions/7273559/how-do-i-change-download-app-button-url-for-facebook-app

Facebook URL scheme to post a new message from iPhone

I am developing an iPhone application, and want it to be able to post a message to Facebook, by using the Facebook app.
Is there a custom URL to do this?
I've found this page that has a list of Facebook commands, but it doesn't say how to post a new message...
The URL to post a new message to the wall is
fb://publish/?text=some text to post
This works with Facebook app 4.1... I don't know if it works with older versions.
This answer might help you... Especially this : fb://messaging/compose
If you are talking about using a feed post then you have to do this:
[facebook dialog:#"feed" andDelegate:self];
See here for more info
Also if your making this a mobile web app then you could try this:
http://www.facebook.com/dialog/oauth?
client_id=YOUR_APP_ID&redirect_uri=YOUR_URL&display=touch
More info on web app
You could also just use Sharekit, that gives your users the option what to share. Otherwise, you'll have to use the FBDialog from the facebook-ios-sdk or a matching webview using the URL given by the other posters
The method you mention, directly calling the facebook app, a) requires the app to be installed (usually not the case on iPads, for example) and b) is not officially supported by facebook - the two other ways are.

The new Appcelerator Titanium Facebook API: How do we perform a simple connect?

I'm trying to use the new Facebook Graph API with Appcelerator Titanium Mobile 1.6 .
I found two complete examples on the net:
That one from the official blog et the Aaron's one.
In both examples, I wonder where should put the app_id and the app_secret? Where the login action is performed?
Thanks.
i didn't try it, but have a look at the api Ti.Facebook and the dev.facebook-help. maybe it will help you to find a solution.
There's loads of examples on the documentation page for the module - the app_id should go in tiapp.xml and then is also set within your code, as stated on that page (see the authorize example). I don't think secret is used anymore in the new Facebook module.
You have to register you application in http://developers.facebook.com -> Apps -> Create new app
After that you will see app id and app secret.
Titanium.Facebook.appid = "your app id";
put above line in app.js file
<module platform="iphone">facebook</module>
<module platform="android">facebook</module>
put this live in tiapp.xml
first you have to require facebook.