[PLUGIN] Facebook2

Post your completed addons to share with the community

Post » Thu Nov 10, 2016 3:02 am

I recently had to make a "register with Facebook" feature for one of my customers (for web, not mobile). To do so I needed to grab the user's email, but official Facebook plugin does not have this feature. So I ended up rebuilding the official plugin and I thought some of you may find it useful.

It's the exactly same plugin as the (current) official one with just one expression more which allows you to fetch the user's email address.

Please note that this plugin does not overwrite the official one. After installing this plugin you will have two Facebook plugins in your C2. One will be called Facebook (which is the official one) and next to it you'll find Facebook2 (which is the one I'm sharing here).

DOWNLOAD: Facebook2 plugin

@Ashley could you consider adding this expression to the official plugin? It's actually just to copy and paste the code from this one as it is built on the latest official one.

Here's a tiny snippet of how to fetch the email.
Image
ImageImageImage
B
27
S
16
G
80
Posts: 1,014
Reputation: 44,747

Post » Sat Nov 12, 2016 10:25 pm

I should overvrite existing original facebook plugin ? or add folder as facebook2 ?
B
25
S
8
Posts: 215
Reputation: 2,173

Post » Sat Nov 12, 2016 10:28 pm

Add folder as facebook2 and then use Facebook2 plugin instead of Facebook plugin.
ImageImageImage
B
27
S
16
G
80
Posts: 1,014
Reputation: 44,747

Post » Sat Nov 12, 2016 10:44 pm

Can you add capx example?
I try make what you add in atrachment but this is from original facebook plugin xD Your plugin have more options :)
B
25
S
8
Posts: 215
Reputation: 2,173

Post » Sat Nov 12, 2016 11:02 pm

Uhm, there's really nothing more in the capx than those two lines on the screen I attached. You just have to make a Facebook app under https://developers.facebook.com/apps then copy the app id to the Facebook2 plugin properties and that's it.

Please follow this tutorial to understand how it works https://www.scirra.com/tutorials/58/how ... ame/page-1
The interface of developers.facebook.com/apps has changed a bit but the idea is the same.
ImageImageImage
B
27
S
16
G
80
Posts: 1,014
Reputation: 44,747


Return to Completed Addons

Who is online

Users browsing this forum: No registered users and 5 guests