Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. Dismiss Notice

Introducing an easy-to-use Facebook plugin for iOS Android

Discussion in 'Assets and Asset Store' started by neatplug, May 8, 2013.

  1. neatplug

    neatplug

    Joined:
    Sep 24, 2012
    Posts:
    99
    Please note the plugin description has been updated with some newly added features in version 1.4.0, and more new features / handy functions is on the way in version 1.4.1.

    We are more than happy to hear from you if you have any feature suggestions or feedback, that help us in making this plugin better. Please send your requests / feedback to support@neatplug.com, thanks in advance.
     
  2. ASkyMesa

    ASkyMesa

    Joined:
    Aug 22, 2013
    Posts:
    1
    hey neatplug, just got your plugin a few days ago. I ran into some problems and was wondering if you could possibly help me out with them. I sent and email to support@neatplug.com with my inquiry. It involves profile pictures. Or would you prefer I ask here? Thanks in advance.
     
  3. neatplug

    neatplug

    Joined:
    Sep 24, 2012
    Posts:
    99
    @ASkyMesa, because we've replied every email to support@neatplug.com timely, I assume you have got the answer, but if not, please email our support again. Thanks.
     
  4. NikolaiS

    NikolaiS

    Joined:
    Dec 28, 2012
    Posts:
    9
    Contacted Neatplug support, asked several technical questions. Posting here the reply with permission.

    Q: Does the plugin overrides the main Unity activity? Please send an example of the manifest file.
    A: Yes, the plugin overrides the main activity:
    <activity android:name="com.neatplug.u3d.plugins.common.NPUnityPlayerActivity" android:label="@string/app_name" android:configChanges="keyboard|keyboardHidden|orientation|screenSize" android:launchMode="singleTask">
    <intent-filter>
    <action android:name="android.intent.action.MAIN" />
    <category android:name="android.intent.category.LAUNCHER" />
    </intent-filter>
    </activity>

    Q: Should I manage authentication manually with RequestNewReadPermissions()? Or all methods request the necessary permissions automatically if needed?
    A: No, all these are taken care of. Initially no publish permission required, if any posting actions happen, the necessary permissions are automatically requested.

    Q: How does LikePage() method works? Does the user likes a page automatically? Or the method shows Facebook dialog window? Or the native Facebook app opens? Facebook does not permit to like pages via Graph API, hence the questions.
    A: Yes, a native Facebook UI will be opened, and the user can tap on the "Like" button to like your page.
     
  5. neatplug

    neatplug

    Joined:
    Sep 24, 2012
    Posts:
    99
    Happy holidays!

    We have started the HOLIDAY SALE, all our plugins are on SALE during the holiday - from Dec 24, 2013 to Jan 7, 2014. You may not want to miss it!
    http://www.neatplug.com
     
    Last edited: Jan 6, 2014
  6. elias_t

    elias_t

    Joined:
    Sep 17, 2010
    Posts:
    1,366
    I bought this plugin today and it works easy and fine!

    However I am having an issue with the status bar on Android.

    The plugin hides the status bar where I want it to be shown.

    I have removed the relevant parts in the manifest and have set it to disabled in the build settings, but it still hides the status bar...
     
  7. elias_t

    elias_t

    Joined:
    Sep 17, 2010
    Posts:
    1,366
    Alright. Neatplug support is one of the best I ever seen. Within a couple of hours we had the problem fixed.

    Hats off to neatplug.
     
  8. Autonoma

    Autonoma

    Joined:
    Jul 21, 2013
    Posts:
    92
    I figured I would chime in here and say that I have the NeatPlug admob plugin and it has worked flawlessly. When I needed support they replied almost immediately (much more than I can say for some of the more expensive plugins I have). I highly recommend NeatPlug - and am excited to give this social plugin a shot!
     
  9. neatplug

    neatplug

    Joined:
    Sep 24, 2012
    Posts:
    99
    Version 1.5.0 of the Facebook plugin is available now!

    Release Notes:

    * (iOS) Upgraded to Facebook iOS SDK 3.11
    * (iOS) Added a new function - PostMessageWithShareDialog() for showing native share dialog on iOS.
    * (iOS) Added a new function - ShareLinkWithShareDialog() for sharing a link via native share dialog on iOS.
    * (iOS) Added a new function - PostActionWithShareDialog() for posting an Open Graph Action via native share dialog on iOS.
    * (iOS) Fixed a crash on iOS4 when calling ShowFriendPicker().
    * (iOS) Removed warnings of "The app references non-public selectors" when validating app with Apple AppStore.
    * (iOS) Fixed an issue that can cause infinite loop when the user skips publish permission request dialog.
    * (iOS) Fixed an issue of receiving app requests if the App is not running when user taps on a request notification.

    * (Android) Upgraded to Facebook Android SDK 3.6
    * (Android) Fixed an issue that causes incorrect android device orientation in Unity 4.3.
    * (Android) Added a feature that automatically adds support for Vuforia AR, if Vuforia integration is found in the project.

    * (All) Added a new function - GetAchievements() for getting the achievements data for the user.
    * (All) Added a new function - CheckIfPageLiked() for determining if specific page has been liked by the user.
    * (All) Added a new function - TagFriendInImage() for tagging a friend in an uploaded image.
    * (All) Fixed an issue of returning empty user location even when "Need User Location Info" is checked on FacebookSNSAgent.
    * (All) Removed an unnecessary permission request when calling PostMessageWithFeedDialog().
    * (All) Configuration patcher has been updated to fully support Unity4.3.
     
    Last edited: Jan 21, 2014
  10. Swordz

    Swordz

    Joined:
    Jan 24, 2014
    Posts:
    6
    Hi neatplug! Awesome plugin! Is it possible to give the player a reward (in this case, the in-game currency) if he likes a fb page? I saw the function for liking a page, but didn't quite get how to access if he liked it or not.
     
  11. neatplug

    neatplug

    Joined:
    Sep 24, 2012
    Posts:
    99
    Yes, actually it is pretty simple to achieve using our plugin: An instant event will be triggered as long as the user likes a page - OnPageLiked(string pageId), and also, a function FacebookSNS.Instance().CheckIfPageLiked(string pageId) is provided for purpose of checking the like status anytime you want.
     
  12. chemninja

    chemninja

    Joined:
    Feb 28, 2014
    Posts:
    6
    Hi! I was wondering does this work with Unity3.5.7?
     
  13. pretender

    pretender

    Joined:
    Mar 6, 2010
    Posts:
    862
    Hi! Neat plugin! :)

    It seems that I am missing something, I was going through the FacebookSNSTest.cs to look for a method that will post message to a feed of selected friends with the link to the app (in this case android app). Any combination i tried it didn't work, either there is no ability to choose what friends you want or either method doesn't accept friend list or it works only on iOS (again maybe I am missing something obvious)

    The second thing I tried is with this code:

    Code (csharp):
    1. FacebookSNS.Instance().SendAppRequest(selectedFriends, "App Request", "I've crashed this test, can you?",null, false);
    I choose friends and try to send them app requests, no matter if I choose true/false for "frictionless" it doesn't show up in their or mine feed...

    Thanks for looking into this!
     
  14. neatplug

    neatplug

    Joined:
    Sep 24, 2012
    Posts:
    99
    Hi @pretender,
    App requests are something different to messages, you won't see them in the feeds, instead, they can be accepted on the device from the "Notifications" in Facebook App. To get App Requests work is tricky (some configuration needs to be modified in your Facebook App settings), please write to support@neatplug.com or use our supporting system at http://www.neatplug.com if you need any further help.
     
  15. neatplug

    neatplug

    Joined:
    Sep 24, 2012
    Posts:
    99
    Yes, all our plugins work with Unity 3.5.7. (Except for the Windows Phone version, which can only be built with Unity 4+, because there is no WP8 support in Unity3.5.7 yet).
     
  16. neatplug

    neatplug

    Joined:
    Sep 24, 2012
    Posts:
    99
    We are happy to announce that the new version of FacebookSNS plugin - 1.6.0 is now available. There are a number of important changes:

    * Upgraded to Facebook SDK 3.14 (Android and iOS);

    * New function - ShowLeaderboard() added, this makes showing a Facebook leaderboard extremely easy as a single line of code (screenshot attached below);

    * New function - GetPermissions() added, this returns the granted permissions in the current session;

    * Graph v2.0 support added - Newly created Apps have to access Graph v2.0, however existing Apps (created prior to Apr 30, 2014) are able to continue to access Graph v1.0 with our plugin before Apr 30, 2015.

    It's worthing mentioning the new function ShowLeaderboard() a little bit more because the feature we made can extremely save your time of building your own leaderboard, if the native-style leaderboard looks fine to you, a single line of code will show the leaderboard to user:
    FacebookSNS.Instance().ShowLeaderboard(); both on Android and iOS, the UI is consistent. Screenshot below:

    [If you cannot see the image below, view it here]

    $facebook-leaderboard.png
     
    Last edited: May 16, 2014
  17. novel173707

    novel173707

    Joined:
    Nov 6, 2014
    Posts:
    2
    hi~
    I bought the neatplug's facebook plugin,I want to get all of my friends'facebookUserInfo.But it can't get use the method of "GetUserFriends".tell me how to get all of my friends'info...

    please reply me,I sent message to your email,but still do not reply me yet,hope reply soon!