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

Post your completed addons to share with the community

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
68
S
21
G
15
Posts: 701
Reputation: 15,604

Post » Tue Jun 11, 2013 3:17 am

thanks
B
60
S
9
G
7
Posts: 176
Reputation: 8,799

Post » Tue Jun 18, 2013 4:49 am

Thanks for the great plugin Lanceal :)

I was wondering is there a way to to use your plugin to send invitation to your game to all your friend list? and not just those who already played the game.
I've been trying to figure out who to do that feature for weeks.

Thanks for the help :)
B
16
S
4
G
4
Posts: 9
Reputation: 3,660

Post » Tue Jun 18, 2013 5:14 am

@Evil Snowman0

Yes it is possible, I've got an updated plugin that includes a bit more functionality such as sending private messages. I just haven't released it as of yet. You can check out the messaging in a non profit app I'm working on.

Help solve the mystery app
B
68
S
21
G
15
Posts: 701
Reputation: 15,604

Post » Tue Jun 18, 2013 7:50 pm

Ok great thanks!
I'll be waiting for the new plugin to be released. Any idea when it might be?

Very cool your non-profit app. :)
B
16
S
4
G
4
Posts: 9
Reputation: 3,660

Post » Tue Jun 18, 2013 9:59 pm

@Evil Snowman0

Thanks, it's far from being done. I have to add more photos, case history and I want to add a reference to people that have already been ruled out.

As for the plugin, I'm not entirely sure yet.
B
68
S
21
G
15
Posts: 701
Reputation: 15,604

Post » Fri Jul 12, 2013 11:59 am

First of all, thanks Lanceal for spending so much time making such a feature complete plugin.
I really didn't want to waste your time with stupid questions, but unfortunately I have to!
Our game is an Android app, compiled with CoccoonJS. We do not plan to have an online version for public viewing- we want the Android game to post directly to facebook with links to the Google Play store or the FB page for the game.
The problem seems to be that FB insists on having a URL for the game to re-direct to.
For testing, we have set this to localhost and the FB posts work fine.
To get it to work on Android, I tried hosting the game on my site and using that URL instead.
I have the game connecting online using the popup login. On the phone, the game just hangs when you press the connect button.
I didn't see anywhere in the plugin properties to add the app secret- I don't know if that is relevant.
So, my stupid question is- how do I get the Android app to login to facebook?
I am assuming the plugin is compatible with Coccoon...
B
5
S
1
Posts: 19
Reputation: 1,173

Post » Fri Jul 12, 2013 2:22 pm

@MouseOfFun

Used to be you could use a special redirect but I think they changed that back around January. The push now is for mobile apps to be built using the native code. I'll look more into it tonight but I'm pretty sure this plugin and the standard Facebook plugin won't work for you in this case. Only the cocoonjs plugin will work. As far as the app secret, it's a very bad idea to put it into a plugin because anyone with knowledge of ajax could take that and your app I'd and start doing things you may not want them to. So I took it out of this plugin, instead I fetch a user token and make calls using that.

Here is the redirect URL that used to work:

https://www.facebook.com/connect/login_success.htmllanceal2013-07-12 14:25:07
B
68
S
21
G
15
Posts: 701
Reputation: 15,604

Post » Fri Jul 12, 2013 3:01 pm

Thanks for your speedy response Lanceal.

I'm not going to be doing any more coding before Monday because the sun's just come out!

I'll check it out on Monday though- cheers
B
5
S
1
Posts: 19
Reputation: 1,173

Post » Wed Jul 17, 2013 12:15 pm

wow this plugin is looking great any plans on doing open graph stories and achievements?
B
20
S
3
Posts: 109
Reputation: 1,967

PreviousNext

Return to Completed Addons

Who is online

Users browsing this forum: totoe and 1 guest