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

Post your completed addons to share with the community

Post » Thu May 30, 2013 2:27 pm


Download the newest release from https://www.scirra.com/construct2/releases/r132Sollaano2013-05-30 14:29:15
B
16
S
4
G
4
Posts: 74
Reputation: 3,241

Post » Thu May 30, 2013 5:44 pm

i must buy it? :(
B
3
Posts: 8
Reputation: 191

Post » Thu May 30, 2013 6:07 pm

i bought c2 r119 so t update or buy?
B
3
Posts: 8
Reputation: 191

Post » Thu May 30, 2013 11:48 pm

@minhhieu493

I believe it was saved in that update so yes you would need to update. The example however really doesn't have much in it at the moment. Just more or less shows you how to approach the logging in using the approach that Facebook would like. I'm working on a paid project at the moment so I haven't had time to put up a tutorial or bigger example file. If someone wants to do that then I'd be glad to walk them through how the features work via messaging. I just can't spend the time I would like to on this because the paid project is taking up the majority of my time.If you or anyone needs help though I'm always open to helping via messaging or find me on facebook as hikenh
B
69
S
21
G
15
Posts: 701
Reputation: 15,629

Post » Mon Jun 10, 2013 1:20 pm

Does this work with PhoneGap?
B
16
S
4
G
4
Posts: 74
Reputation: 3,241

Post » Mon Jun 10, 2013 6:21 pm

I don't think so. Anyway, i'm not able to make work the "post score", i do the log in using the dialog in the loader layout, with this configuration.

The i call the "publish score", but the score is always 0.
B
3
Posts: 5
Reputation: 185

Post » Mon Jun 10, 2013 8:43 pm

@blackcatgames

Would you mind sharing your capx? I just tried logging into your app and received a page not found error. Are you in sandbox mode in your developer settings? That wouldn't cause the error I'm just curious why I can't access your app.
B
69
S
21
G
15
Posts: 701
Reputation: 15,629

Post » Mon Jun 10, 2013 8:51 pm

@blackcatgames

Make sure you are accounting for the other type of Facebook user settings as well. Currently in that screen the app only logs you in if the user is logged into facebook but has never given permissions(installed the app). So after the first time they give permission it will not try and log the user in.Which can be a problem over time when the access token expires.
B
69
S
21
G
15
Posts: 701
Reputation: 15,629

Post » Mon Jun 10, 2013 11:05 pm

Hmm looks like one of the breaking changes for lack of better terms, broke the plugin. Lol I'm going to play with it tonight and see what happened.
B
69
S
21
G
15
Posts: 701
Reputation: 15,629

Post » Tue Jun 11, 2013 2:19 am

Version 0.31 is here. This version fixes the ability to submit user scores. Also 2 new conditions. OnUserHiscoreSubmit and OnUserHiscoreReceive.

See the new features live


Current Version: 0.31
Version 0.31

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

CURRENT FEATURES

ACTIONS:
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)
Upload Photo by URL - Upload a photo to the users profile.

CONDITIONS:
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.
On Photo Upload Fail - Triggered once a photo failed to upload.
On Photo Upload Success - Triggered once a photo has been uploaded.
OnUserHiscoreSubmit - Triggered once a score has been submitted to Facebook.
OnUserHiscoreReceive - Triggered once the user score has been received.

EXPRESSIONS:
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
B
69
S
21
G
15
Posts: 701
Reputation: 15,629

PreviousNext

Return to Completed Addons

Who is online

Users browsing this forum: shinkan and 2 guests