Facebook SDK

Discussion in 'How Can I...?' started by manak4u, Apr 26, 2016.

  1. manak4u

    manak4u Avid Boxer

    Joined:
    Feb 18, 2016
    Messages:
    112
    Likes Received:
    20
    BB is not providing support for fb sdk, Not for some time as informed by sean @ support, I wonder if there is some way to integrate it with exported code.?

    Has anyone done something like this yet?
     
  2. amazingafternoon

    amazingafternoon Boxer

    Joined:
    Sep 25, 2015
    Messages:
    84
    Likes Received:
    20
    Hi manak4u,

    I have done that in Xcode. Just look for a tutorial for the right sdk you need and go from there. A bit of a brain teaser at first but it worked out well at the end.

    Biggest problem is that when you make an update you'll have to do that all over again. Has anyone found a solution for this?
     
  3. manak4u

    manak4u Avid Boxer

    Joined:
    Feb 18, 2016
    Messages:
    112
    Likes Received:
    20
    Hi,

    Can you point me to right tut.

    would really help.

    thanks.!
     
  4. amazingafternoon

    amazingafternoon Boxer

    Joined:
    Sep 25, 2015
    Messages:
    84
    Likes Received:
    20
    Try this one manak4u:
     
  5. rizwanashraf

    rizwanashraf Avid Boxer

    Joined:
    Dec 3, 2015
    Messages:
    344
    Likes Received:
    215
  6. viking

    viking Avid Boxer

    Joined:
    Sep 25, 2015
    Messages:
    160
    Likes Received:
    77
    hI @rizwanashraf
    I couldn't find how to open that .plist (Open as source code)
    Could you help on this and tell me how you opened this file ? Text Edit :)
    thx
     
    amazingafternoon likes this.
  7. rizwanashraf

    rizwanashraf Avid Boxer

    Joined:
    Dec 3, 2015
    Messages:
    344
    Likes Received:
    215
    What you have to do Go to the folder of your Xcode Project, The folder where your Xcode Project is located and there you will see a File similar to PTPlayer-YourGameName.Plist and you open it in a text editor, What i use is Sublime Text Editor which is pretty solid but you can use any.
    Then add the Code Facebook gives you under <dict> </dict>
     
    viking likes this.
  8. viking

    viking Avid Boxer

    Joined:
    Sep 25, 2015
    Messages:
    160
    Likes Received:
    77
  9. viking

    viking Avid Boxer

    Joined:
    Sep 25, 2015
    Messages:
    160
    Likes Received:
    77
    Hi @rizwanashraf

    i couldn't find the answer ...

    I imported the FBSDKCoreKit.Framework, FBSDKLoginKit.Framework, FBSDKShareKit.Framework

    i open .plist with Sublime Text 3 and insert fb code here :

    <?xml version="1.0" encoding="UTF-8"?>
    <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
    <plist version="1.0">
    <dict>
    <dict>
    <key>CFBundleURLTypes</key>
    <array>
    <dict>
    <key>CFBundleURLSchemes</key>
    <array>
    <string>xxxxxxxxx</string>
    </array>
    </dict>
    </array>
    <key>FacebookAppID</key>
    <string>xxxxxxxx</string>
    <key>FacebookDisplayName</key>
    <string>XXXXXXXX</string>

    </dict>
    <key>CFBundleDevelopmentRegion</key>
    <string>English</string>
    <key>CFBundleDisplayName</key>
    ...........
    Save

    is that correct ? i did had <dict> fb code </dict> and i get this error when i test/run the game
    error: couldn't parse contents of '/Users/..../Documents/.../PTPlayer-Info.plist': The data couldn’t be read because it isn’t in the correct format.
    is it when i save with Sublime text 3 ?

    Also i can't find the AppDelegate.m in my project to Track App Installs and App Opens
    App Events let you measure installs on your mobile app ads, create high value audiences for targeting, and view analytics including user demographics. To log an app activation event, first, import the Facebook SDK in your AppDelegate.m file:
    #import <FBSDKCoreKit/FBSDKCoreKit.h>

    thanx for your help

    VK
     
  10. rizwanashraf

    rizwanashraf Avid Boxer

    Joined:
    Dec 3, 2015
    Messages:
    344
    Likes Received:
    215
    Did you backup your pList file ? :D because you messed it up. you need to add these lines under <dict> </dict> you can download facebook sample xcode project i am sure they have it and you will see where you need to add these lines.

    AppController.m is actually your AppDelegate.m :)
     
  11. sharma.shivam

    sharma.shivam Avid Boxer

    Joined:
    Oct 23, 2016
    Messages:
    180
    Likes Received:
    10
    hi,is there any tutorial for android eclipse?
     

Share This Page