Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Sharekit - Facebook configuration

I am trying to integrate sharekit in an ios app. Everything works properly but I have problem with Facebook. What I'have done so far :

  1. created an app on Facebook (no extra configuration on Facebook, like native etc..)
  2. edited SHKConfig.h and added
    #define SHKFacebookAppID @"MyFacebookAppID"

  3. in my app.plist added the url scheme : fb+appID
    Now When I try to share something on Facebook, the Facebook app on the device is opened, showing the message : You are logging into this app as "facebookUsername", when I click ok I'm redirected to my app but nothing happen, no sharing action.
    I am missing something??

like image 983
oiledCode Avatar asked Feb 01 '12 09:02

oiledCode


People also ask

What version of iOS does Facebook require?

FaceBook's requires iOS 12.4 or later. If Apps that you need to use now have higher minimum iOS-version requirements than you iPad can support, your only option is to replace your iPad with newer model.

What is Share sheet extension on Facebook?

Share Sheet lets you preview your post before it reaches your Facebook feed and offers options to share with particular people.

What does Facebook SDK do?

The Facebook SDK is a set of software components that developers can include in their mobile app to understand how people use the app, run optimized marketing campaigns and enable Facebook login and social sharing.


2 Answers

The solution to my problem is illustrated here sharekit installation guide step 6

like image 194
oiledCode Avatar answered Sep 28 '22 05:09

oiledCode


Things You have to do for Integrate Sharekit With your Application..(Recommended)

1) Actually You dont need to set URL scheme in .plist file for Sharekit. It's only for facebook API users..

2) Check out,Did you fill api key and secret key in SHKConfig.h file like this below

#define SHKFacebookKey              @"YOUR_API_KEY"
#define SHKFacebookSecret           @"YOUR_APP_SECRET_KEY"

3) Verify Did you "import SHK.h" file..

4) You have to include "MessageUI,SystemConfiguration and Security frameworks".

5) You dont need to do this #define SHKFacebookAppID @"MyFacebookAppID"

6) Invoke sharekit actionsheet as given in documentation.

like image 27
Dinesh Raja Avatar answered Sep 28 '22 05:09

Dinesh Raja