how to post on facebook? - ios

I am developing ios app in which i need to login in social networks. I configured facebook in app i need a posting method using facebook login in my app note i already find a method of posting by login through iphone settings.But i need to post by facebook of my app.
not like this it is using iphone settings i need to hit facebook through my app and post through that login
http://www.gottabemobile.com/2012/10/03/how-to-connect-facebook-to-the-ios-6-notification-center/

Related

After Facebook login return my another application in Swift 3

I have to use same facebook id on my applications.
Sometimes the facebook application installed on the phone when the user enters my application and facebook login is directed to facebook application. After the user approves the facebook entry, it is directed to my other application which is the same as the facebook id.
How can I fix this issue? Can I take care of using my application url scheme? So how can I do this? Or how to prevent the facebook application from opening?
This is facebook login as it should be:
This is facebook login with the facebook app as it should not be:
You should not use same facebook id in different app.
If you use same facebook id, there will be the same scheme.(Will cause confusion when open your application)
If you really want to use same facebook id, you can use webview in your app connected to your server and handle login by server.

How to use the Instagram api on ios to post on Facebook if the accounts are linked on Instagram and Facebook?

I am developing an iOS app using swift and I am logging in using Instagram API. On Instagram, users can link their Facebook accounts. If I post to Instagram from my app, is the post published on Facebook if Instagram and Facebook are linked?
If not, is there a way to use something like a "single sign on" in my app for users that are using Instagram with a Facebook login? My goal is to be able to retrieve and publish info from/to both using the access token retrieved from Instagram.

Opening the native facebook app to a pre-filled post

I need to open the facebook iOS app with a post pre-filled. Is this something I can do with the facebook url scheme, or do I need to use the facebook SDK?
I'm aware of this:
iOS post to the Facebook app wall
But I'm really interested in a lightweight solution.

Invite user to install an iOS App using Facebook

I have an iOS social app, which used Facebook to login. Now I have access to the friends list. Is there a way to send a request to a Facebook friend (who is currently not using app) to install my App. What I mean to say how can you advertise an app using Facebook circle.
You can use FBWebDialogs, there's a presentRequestsDialogModallyWithSession method which does what you need.
You can also see this tutorial - https://developers.facebook.com/docs/ios/send-requests-using-ios-sdk/

keep Facebook authentication when accessing webpage thru UIWebView after login with iOS SDK

I have successfully integrated the facebook ios SDK in my app so that user can post to their wall through a feed dialog.
However, I would like to post an open graph object through my app but since this is currently only supported on webpages (is this correct?), I suppose I can load the webpage with the meta tags inside a UIWebView. If I do so, however, I believe user have to authenticate my web app as well?
Is there a way to not need the user to authenticate my web app inside the UIWebView when they have already login through the iOS SDK? I would like to keep the iOS SDK login process because it doesn't require user to enter their facebook details (assuming they have the facebook app installed of coz)
thanks much in advance!
it looks like i am able to post feeds in UIWebView after logging in with the iOS SDK. I did logout of facebook on my safari app just in case....

Resources