how to integrate facebook in my application in iphone - iphone

i am creating a music application and i want to integrate facebook into my application.when the user logs in for the first time in facebook the log in page of facebook should be displayed and after when he clicks on the login button my custom dialog page should be displayed containing buttons of publish feed, retrieving friends and logout and when the user clicks on a particluar button for.e.g publish feed his wall page should be displayed and when he enters some information in that it should be posted to his wall and his friends wall and how can i create the template bundle id of my application in facebook.
Please help me regarding this problem

See: http://wiki.developers.facebook.com/index.php/Facebook_iPhone_SDK.
Have you tried implementing any of the application above? People will generally be more helpful if you attempt the a solution and have specific problems.

Related

How facebook team uses "custom parameters sent" in the facebook pixels?

I recently checked airbnb and once I applied filters on the website, it fired Facebook pixel with all the information in custom parameters.
How is this done i.e. how can facebook show specific ads to people who have viewed certain page on our website? After this was fired I started getting, relevant suggestions when I accessed facebook through same browser. Does this work only when the user is logged into facebook from same browser?
Is it something like facebook will associate this pixel fired with already logged in facebook user on that browser? And if the same user comes to facebook from any other device, he/she would be shown ads based on that pixel?

post a comment on facebook wall after submitting a button on my website

Is it possible to post a comment on users facebook wall after submitting a button on my website?
On my web page users can review certain products and after they review them the press on ‘submit review’ button. I want to make the review report to be published on the user’s facebook feed.
Thanks in advance,
For a normal post, you can use the Feed dialog – this does not require that the user connect to your app first.
If you want to post via API in the background, then you have to have the user login to your app first.
If you do not want a normal post, then look into Open Graph actions: https://developers.facebook.com/docs/concepts/opengraph/

How does Facebook track Like or other activities on my site?

I am using Addthis.com's service to add facebook 'like' button onto my site.
Now I want to manually add some facebook social plugins to my site:
http://developers.facebook.com/docs/plugins/
As I see, some plugins require to enter 'app_id', but I didn't specify my 'app_id' for Addthis.com's buttons, so I would like to ask how does facebook track those 'like' or other activities on my site??
For example, if a user clicked 'like' on Addthis.com's button on my site, would this user appear in the "Like Box" and "Facepile" plugins that I manually added to my site??
Thanks!!
AddThis
When using AddThis, the app itself, gets the current page that is liked or the specified Facebook page. When you are referring to the app_id for AddThis, it is their own id that allows you to log into http://www.addthis.com and access their custom statistics page.
Facebook
When using the Facebook like button or other plugins, Facebook records the number of times someone has pressed the button. It also includes shares and reposts in this number. Using the Facebook API you would be able to seperate the numbers (whether like or share) if desired.
Facebook API
In order to access the information recorded by Facebook you must register and app with them and that will give you a Facebook app_id. This can then be used in any of their plugins.
Overall
Since the AddThis app transfers the information to Facebook, Facebook will display your like and share count in any of its plugins.

How to display the APP on the Wall and News Feed

I created a Facebook APP which is being used for FB Connect Feature... everything is working fine.
But now I would like to display my APP on the Wall and News Feed, and also give the user the opportunity to share my APP.
How can I do this? I searched on Google and checked the Facebook API but couldn't make it.
Check out the Facebook Social Plugins...
Here you will find methods to embed share and like buttons on your site. When users interact with these social plugins, stories will be created on their feed and their friends will see this activity.

Posting to user's facebook news feed without posting to his wall

I'm tring to send customized news to my users via Facebook.
I've tried posting private posts to their walls, so they show up on their news feed, but people got upset by the new posts on their wall (even though noone else can see them)
Is there a way to do this?
I considered building a page per user and suggest to the user to follow it - can this be done via API?
Can a user follow updates on just any page (non fan page) that he Liked, or that has a FB comments box?
Alternatively, can I programatically send Facebook notifications?
You can try creating a single Page for your app. Then when a user connects with your app, auto-follow that page so that all posts to that page show up in the user's feed.
Now just add new posts to that Page with privacy settings targetted at just that user.
Thats my off the cuff answer.