Smeegol
Smeegol

Reputation: 2098

Facebook Sharer for iOS

I searched about Facebook Like/Recommand/Share function for iOS for many many days. Today I finally come here to find what I need. So I doubt How to do this? For Facebook Developers Website's documents are not detail, especially on iOS. So I am asking questions here. Thank you very much.

The image is here.

Upvotes: 2

Views: 4544

Answers (3)

mturhan55
mturhan55

Reputation: 211

I try new facebook sharer dialog. You can find that here

But first of all, you must open a facebook app. I set facebook app type to mobil internet instead of ios.

Secondly you can use this code for sharing :

  NSURL *shareURL = [NSURL URLWithString:@"https://www.facebook.com/dialog/feed?
app_id=458358780877780&
link=https://developers.facebook.com/docs/reference/dialogs/& 
picture=http://fbrell.com/f8.jpg&
name=Facebook%20Dialogs&
caption=Reference%20Documentation&
description=Using%20Dialogs%20to%20interact%20with%20users.&
redirect_uri=http://www.facebook.com/"]

[[UIApplication sharedApplication] openURL: shareURL];

You have to change your app_id within this shareURL.

Lastly; i give same redirect uri for both facebook api and direct url.

Upvotes: 0

vinzenzweber
vinzenzweber

Reputation: 3389

Maybe you wanna try BMSocialShare.

Upvotes: 0

Srikar Appalaraju
Srikar Appalaraju

Reputation: 73608

Facebook has an iOS SDK - check here and here. Maybe this could help you...

You could also provide backend support for FB likes etc. using oAuth Flow. For that you could use Python, PHP or any other popular language to interface with FB Graph API

Upvotes: 3

Related Questions