Facebook app API key and UIActivityViewController - ios

Is it possible to supply a Facebook API Key when posting to Facebook from a UIActivityViewController?
If not, then how would it be possible to add the Facebook SDK to be used with the UIActivityViewController?
I basically want to use the share sheet to make a facebook post, but want it to have Deep Linking with my app.
Possible?

I'm not sure if it is possible but you might look into OvershareKit https://github.com/overshare/overshare-kit
It allows for sharing on many different mediums but it also handles the Facebook API sharing using a Facebook API key instead of using the UIActivityViewController built-in methods.

Related

App requests in Facebook without re-logging and use session in Social Framework

I've successfully connected in Facebook using Social Framework, also able to get list of my friends. However, I need to invite friend to use my app, I have been reading some articles and stackoverflow, that this need to use Facebook SDK.
Now, I able to achieve this using Facebook SDK. but then I need to re-logging (show pop up or direct to FB app). What I want is, to use session or outhToken that I have while I connected using Social Framework and use it in Facebook SDK. what I know, I have outhToken already. how to use this maybe to pass in FBSession or whatever class object to show app request ?
below is sample of app request.
For those who stumbled this question,
Facebook now remove graph API to grab friends that doesn't install the app. hence we cannot invite friends who doesn't install app.
even using Facebook SDK. if anyone has better solution or any updates on this, please share.

How to post an image to Instagram, after taken the access_token through my iOS app?

I used the Client-Side (Implicit) Authentication as described in http://instagram.com/developer/authentication/ and I receive the access_token. How can I use this to post a photo in the user's Instagram?
Thanks
Instagram does not allow posting photos from anywhere but their own mobile apps. Third party developers do not have access to this API. However, since you are on iOS you can use their iOS hooks to open Instagram to the share screen with a photo from your app as described on http://instagram.com/developer/iphone-hooks/ under the Document Interaction section.

Limitations of iOS6 Social Framework - can I get Facebook images?

In my iOS app I need to access the profile pictures of a user's facebook friends. Is this something that can be done with the iOS6 Social framework? Or would I need to use the Facebook API? The documentation for the Social framework is vague in that is says "common uses for the framework are..." but doesn't seem to give any concrete details on what it can or can't do.
Also does anyone have any tips on the best way to get the profile picture images of facebook friends?
The social framework, by virtue of SLRequest, lets you do basically anything with the graph API. The Facebook docs tell you what parameters and permissions you need and then SLRequest creates the authenticated request for you and executes it (performRequestWithHandler:).

facebook comments box in ios app

Is there any library to implement facebook comments box into an iOS app? I don't want to use comments plugin in uiwebview since I need to create/modify/destroy comments based on facebook object id. I already set up facebook single signon using facebook sdk for iOS. I know how to implement (and already have) this feature using facebook graph api. I was just wondering if something ready to use with ui and everything else is available.

Facebook registration

I need to add the 'Share' on Facebook and Twitter buttons to my iPhone app. Before I get any further, do I have to go register on Facebook Developers, under Mobile Apps, in order to get an App ID (and then implement the Single Sign On)? How about Twitter?
First of all you need to register your app in facebook and twitter under development
For twitter go to this http://dev.twitter.com and for the facebook go to this http://developers.facebook.com/docs/guides/mobile/
when you register your mobile app you will get api key go to http://www.getsharekit.com . here is the open source api for share item (text, image , file , link ) to share on facebook , twitter and many more.
just check it.
Thanks
Yes, you do need to register with Facebook and be issued an App ID. Without this, you won't be able to do very much at all with their API. All the information you will need is available here:
https://developers.facebook.com/
...as well as the facilities to create your app and App ID.
If you are intending to use Facebook and Twitter official SDK, you will have to get ID from their respective developer console. For Facebook the official SDK can be downloaded here and for twitter the official SDK is here.
Updated : From iOS 6 onwards, you can use Apple's own Social Framework to share with Facebook and Twitter.

Resources