How to share text to Facebook - iphone

In RootviewController of my application I have a textfield and a button. I write something in that text field and after that when I click on the button then that text should be shared in Facebook. How to do this??

i think you need to integrate FB in your app to post your comments...

You must integrate Facebook SDK in order to do anything in user's account from iPhone app. After integrating and login You need to ask for permission "set_status" and after that you can show dialog for "set_status". That will show what exactly you want.

Related

no way to create / register first application

I tried to create my first app.
I went to https://developers.facebook.com/ and clicked on 'applications'.
Then facebook redirected me to my facebook page. There was NO button to '+add an application' and no form to ask me if I needed 'something' to create the application.
I added a valid credit card because it's mandatory to get a 'developer' status.
How I can add an application to facebook. Is there a way to ask their tech department?
(edited)->
Also if I click on https://developers.facebook.com/apps it redirects me to my facebook page WITHOUT a window to 'Request for permision'
<-(edited)
Here you will have a button to add New App, a popup should appear to write the New App's name. I can see in your post you don't get this popup, but it is where you need to go. So try using this link on your Personal Account not your pages account, just like DMCS is saying.
Here you should get a couple of more links, and there's a how to link that might help.
<---edit--->
Here you can find a fast track to build a facebook app. Not sure if it's what you want, but it might help in some parts of the process.

create auth permission dialog in facebook

basically i have integrated fb in my app and for that i have created the app in fb developer site.
I have got app id and i have authorized my app with fb using this id.
While asking permissions in fb, the auth dialog havn't appeared good. like i want to display auth dialog as below image.
but i didn't see above style of auth dialog while authorization. How will i get that style of dialog?.
Currently i am getting the below style of dialog.
Please advise in this regards.
Thanks!!!
Go to your facebook profile from which you have created your app,or from which you are accessing your app.
Then go to Privacy Setting -> Apps, Games and Websites
And here go to apps you use there click edit in front of your app and then remove it.
It will simply remove your permission and will ask you again as you have shown in screen.
If anything feel free to ask.

Manual Login Functionality for Twitter to make a tweet only in iphone sdk

I have made a tweet Functionality in my Application.
Its working fine.
now I don't want twitter Default Authentication (ie.login) Screen for login.
I want to put my custom login screen which has two text field of username and password.
and one tweet button.
now on tweet button click I want to direct post tweet on twitter like old twitter modules.
I heart that its done using Xouth .
if it is possible then any code or links for that??
I want any solution for that???..
it is happen in BBC ipad App.
For Manual Login , you need Xauth Twitter Access ,
refer these source codes & Links,
http://code.google.com/p/tweetero/
https://github.com/aral/XAuthTwitterEngine

How to add the Facebook Like Button in the end of scrollView?

I am working with navigation based application. Every cell creates a detailView. i have 3 text views in detailView which show title, date and description. I put there textViews in a scrollView so user can scroll them as a single view. Now i want a facebook icon in the end of scrollView. If that icon is clicked and user is already login on facebook, that facebook page should be liked automatically. and if user is not login, it should ask for account information. I am quite new in this and this is my first app. i tried to explore developer.facebook.com but couldn't get that functionality. Can anybody help me with this? thanx in advance.
To implement the button itself, you'll add a custom UIButton to your application using the Facebook Like graphic as its image.
Your selector that handles the touch event will need to handle the NSRequest. You'll need to find out if the user is logged in or not. If the user is logged in to Facebook, your selector will make an NSRequest to Facebook's API for liking the Facebook page. If the user is not logged in, you'll need to instead provide the user some UIView that will handle authentication with Facebook. When you know authentication is successful, you can then issue the NSRequest to the Facebook API for liking the page.
For more information on using the Facebook API in your iOS application, you should check out Facebook iOS SDK at https://github.com/facebook/facebook-ios-sdk. Facebook's iOS SDK includes authentication and extensive API support to help make your job easier.

Facebook login problem in iphone?

In app I used fbconnect library in case of my app the fb browser shows lot of thing but i actually want the browser which shows only two textfield & one button for submit what i do for that still i'm using only fbconnect not fbconnect with json.
It is really hard to understand your question, to be honest. I will try my best to make the most appropriate guess
If you use FBConnect library, you have to use their login dialog, this is the common expected User Experience. Whenever users touch the button "F connect", they expect to see the FB connect dialog includes a lot of information and username and password textfield