Registering facebook app without including sdk - facebook

Since iOS has built in Facebook sharing (via UIActivityViewController), I'm easily able to post without including the FB SDK. However, when I post to my timeline, I want it to say "via AppName". Do I have to add the sdk to my app or is there a simpler way of doing this?

No, you will have to create a Facebook App and use the iOS SDK.

Related

Facebook share kit ios

I have implemented Facebook share kit to my app and it works as intended, but if the user installed Facebook official iPhone app it messes up my app because it logins through Facebook iPhone app instead of share kit default login. Is there way to make share kit ignore Facebook official iPhone app?
No, there is no such method. You just have to use the latest Facebook API provided by the Apple. That may solve your problem of not detecting the login from app.

How to authenticate a person who has facebook but not the facebook app on iOS device?

I am creating an app on iOS and i came across a scenario if a person does not have the facebook app installed but has Facebook. how does the game app handle that. you can only play the game if and only if you have facebook account?
You can use Single Sign On in Facebook.
So that the facebook will authenticate its user through facebook app if its installed otherwise through the safari.
Here is the Link also here.
Happy coding :)
If you targeted the older versions (below ios6) use Graph API.
If you targeted for newer version (ios 6 and above) use the native method

IOS5 Twitter - is there a way to retain the App association?

If a Tweet is created using the native Twitter API, the Tweet has a "via [my-app]" indication, where [my-app] is a link to the App's home page.
If the same Tweet is created using the new IOS5 Twitter API, the app says "via IOS" and the link points to www.apple.com.
Is there a way to retain my App association when using the IOS5 API without adding a link to the Tweet itself?
If not, can I continue to use the native Twitter API under IOS5 or is this a cause for rejection?
According to the FAQ on the Twitter iOS developer site, this only happens because your app is not yet live in the app store:
If your application is not yet live in the App Store:
The application making the requests must be launched in Apple's App Store in order for the
attribution to display on twitter.com. Note that the iOS5 version of the application must be
live, not just a previous version.
They also have some tips on how to fix this if it still happens after you're live in the app store here: https://dev.twitter.com/docs/ios-frequently-asked-questions
Since the via [my-app] is set in Twitter application configuration I dont think that you can set it via the iOS Twitter API.
Apple will not reject your app for using the Twitter API directly (for example using Sharekit or MGTwitterEngine). At least they did not reject my app which still uses the ShareKit.

how can I sign in from my iphone app to facebook account?

I want to sign in to facebook using my application, so how do I code it?
Facebook provide an iOS SDK that gives you the ability to sign into Facebook and methods for accessing the GraphAPI.
Check here for information - http://developers.facebook.com/blog/post/400
Facebook iOS SDK is available here.
You will have to
Download the SDK, and install it
Create a Facebook App in your Facebook developer console, and get a
Facebook app id.
In your Xcode project add the Facebook SDK framework files.
Add the Facebook app id in your projects Info.plist file, and start
coding.
You could get more information here.
Edit : From iOS6 onwards, Apple has a new framework to post into Facebook. It is called Social Framework, and you could find information about it here.

How to use facebook connect in an iphone app

I have looked at the facebook iphone api and watched the tutorial they offer but an not sure if one needs to have a facebook app as well to be able to connect an iphone app to facebook.
I would like to allow my users to be able to share things on their profile. e.g. set their status from within my iphone app.
How is this done?
Try the Facebook iPhone SDK
--edit--
You need to register your application to use the API.
Authentication Docs