[Facebook for Websites] - Update 1-29-2016

0 favourites
From the Asset Store
Toxigine fleet
$5.60 USD
30% off
29 top down spaceships, 6 color variations and extra lighteffects
  • xanxion I'm curious, you do run the fetch user info action upon login? It's one of those things I detached from the login process so people could run it at anytime(so you can check before permission specific events as well as after login)

  • Hey lanceal, is there a way to get Friend's avatars from facebook?

  • There a plugin, there are extra APIs didn't include your list

    http://www.scirra.com/forum/plugin-small-mod-to-facebook-plugin_topic52653.html

  • Would you add 2 expressions?

       -User email address

       -User Birthday

  • You know what, i really think i made an error. Because it seems to work now! This is simply awesome work lanceal!

    So many features, and good stuff!

  • By the way, any chance you could make a capx showing how to create something like this: scirra.com/tutorials/445/facebook-how-to-get-a-list-of-friends/page-1

    With your plugin. Im sure its already build in. But i dont know how to set it up.

    Anyway, thanks for the great work you've done.

    This place wouldnt be the same withought you talented guys :)

  • xanxion

    A list of friends is doable right now using the following:

    Update Status - Update the user login status. Fetch the friend list, then cycle through the listusing the game friend array length expression. Call the fetch friend info action for each number in the array length. Then just do as you will to save the info for each player. I don't have the functionality atm to fetch the entire friends list but that shouldn't be too difficult to add.

    ACTIONS:

    Fetch Game Friend List - Fetch a list of all users friends that play this app.

    Fetch game friend info by array ranking number - Fetch game friend info by array ranking number.

    CONDITIONS:

    On Game Friends Loaded - Triggered once all game friends have been loaded.

    EXPRESSIONS:

    Current friend score - Current selected game friends score.

    Current friend name - Current selected game friends name.

    Current friend ID - Current selected game friends ID.

    Current friend rank - Current selected game friends rank.

    Game Friend Array length - Current selected game friends array length.

  • Try Construct 3

    Develop games in your browser. Powerful, performant & highly capable.

    Try Now Construct 3 users don't see these ads
  • I'm making a game with your plugin, sometimes it's complicated compared to Scirra's facebook plugin...

    Like im making similiar "Prompt to share this app" but your plugin, i had no idea.

  • API Error Code: 100

    API Error Description: Invalid parameter

    Error Message: null does not resolve to a valid user ID

  • Joannesalfa,

    Yes it is more difficult to use. Facebook api has a ton of available options that were not put into the default plugin I'm assuming to avoid the complexities. The one issue I'm guessing you're having in the above is permissions. I did not hard code any of the permissions into the file because of the sheer number of permissions. So to fix your problem go to the following Permissions. Make sure to request the permissions that you need.

  • ersion 0.30 is here. This version adds the ability to fetch the users birthday and email address.

    Current Version: 0.30

    Version o.30

    Example Capx

    Capx

    Example in action

    Sample Here

    Version 0.21 (old for breaking changes purposes) If you are updating from version o.21, make sure to remove any story posting references first. Or you will need to revert back to this version to do so before updating.

    Facebook Complete

    <font color="red"><font size="6">CURRENT FEATURES</font></font>

    <font size="5">ACTIONS:</font>

    Update Status - Update the user login status

    Login Dialog - Log User Into your app

    Update Basic User Info - Fetch available basic user data

    Facebook Logout - Log User out of Facebook

    Delete App - Delete your application for the user

    Post Story - Post Story to Users Feed

    Publish score - Publish a score for this user

    Request user top score - Request user top score

    Prompt To Share Story - Prompt to Share Story to Users Feed

    Invoke Pay Dialog - Prompt User to Purchase an Item with Facebook Credits.

    Fetch Game Friend List - Fetch a list of all users friends that play this app.

    Fetch game friend info by array ranking number - Fetch game friend info by array ranking number.

    Login Popup - Log into your app using javascript(non redirect)

    <font color="green">Upload Photo by URL</font> - Upload a photo to the users profile.

    <font size="5">CONDITIONS:</font>

    On App User Logged In - triggers when user status changes to installed

    On App Not Installed - triggers when user status changes to not installed

    On Facebook Logged Out - triggers when user status changes to a user who has not logged into Facebook

    On Facebook Info Populated - Triggered When user Facebook Information Expressions are populated

    Is user logged in - True if currently being viewed inside Facebook by a logged in user

    On Story Success - Triggered when the last story action completes successfully.

    On Story Failed - Triggered when the last story action completes unsuccessfully

    On Payment Success - Triggered When user successfully completes a credits transaction.

    On Payment Failure - Triggered When user unsuccessfully completes a credits transaction.

    On Game Friends Loaded - Triggered once all game friends have been loaded.

    <font color="green">On Photo Upload Fail</font> - Triggered once a photo failed to upload.

    <font color="green">On Photo Upload Success</font> - Triggered once a photo has been uploaded.

    <font size="5">EXPRESSIONS:</font>

    UserID - Return the UserID of the Facebook player.

    UserAccessTokenExpiresIn - Return the seconds left until the Access token expires.

    UserLoginStatus - Return the login status of the Facebook player

    UserAccessToken - Return the current User Access Token

    UserSignedRequest - Return the current Signed Request

    UserFullName - Return the users full name

    UserFirstName - Return the users first name

    UserLastName - Return the users last name

    ThirdPartyID - Return the users Third Party ID

    UserGender - Return the users gender

    UserLocale - Return the users locale

    UserLink - Return the users Facebook link

    UserUserName - Return the users Facebook Username

    StoryFeedPostID - Return the PostID for the last story feed posting or error if an error occured

    UserPicture - Return the users true Facebook Picture Url

    ScoreError - Return the status of the last Score Posting

    Score - Get the score, when in a 'on user top score' or 'on hi-score' event

    Payment Order Status - A Facebook order status IE.. 'settled'.

    Payment Order ID - A Facebook order id.

    Payment Error Code - An error code identifying the error.

    Payment Error Message - An error message describing the error.

    Current friend score - Current selected game friends score.

    Current friend name - Current selected game friends name.

    Current friend ID - Current selected game friends ID.

    Current friend rank - Current selected game friends rank.

    Game Friend Array length - Current selected game friends array length.

    Minimum Age Range - The user's minimum age range.

    Maximum Age Range - The user's maximum age range.

    Email - Users Email Address

    Birthday - Users Birthday mm/dd/yyyy format

  • Thanks!

    I'm struggling to make it working to post something in wall, would you explain a mini-tutorial?

    Sometimes i use official facebook plugin, but it's kinda out-dated.

  • Did you request the streaming permission?

  • Did you request the streaming permission? There is a lot to it because its so versatile. Ill see if I can start putting something under tutorials tonight. But it might take a few days before its complete.

  • Super excited about trying this out. Seems like you've been doing some amazing work lanceal!

    Is there a way (that you know of) I could use this to look up all (not just the ones using the app) the players friends and fill an array with their names?

Jump to:
Active Users
There are 3 visitors browsing this topic (0 users and 3 guests)