dubhaskar / facebook-actionscript-api

Automatically exported from code.google.com/p/facebook-actionscript-api
0 stars 0 forks source link

Facebook Like Button in a web flex application #287

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
Hi,

I'd like add a Like Button (like this : 
http://developers.facebook.com/docs/reference/plugins/like/) into a Flex 
application.

Do you know if it's possible ?

Thanks,

Maxime

Original issue reported on code.google.com by maximus...@gmail.com on 9 Apr 2011 at 6:30

GoogleCodeExporter commented 8 years ago
The <fb:like> tag is parsed and rendered by the Facebook Javascript API.
Its possible to have a like button next to your swf, but not within the app 
itself. 

<fb:like></fb:like>
<div id="flashcontent"></div>
<script>
   FB.init({appId: 'YOUR_APP_ID', cookie: true, status: true, xfbml: true});
   swfobject.embedSwf("MyApp.swf", "flashcontent"...
</script>

Original comment by edwar...@gmail.com on 13 Apr 2011 at 9:24

GoogleCodeExporter commented 8 years ago
I'd like to push for a change from "not possible" to a new feature request so 
that it can work within a flex app!

Deeanna

Original comment by deeanna....@gmail.com on 16 Apr 2011 at 8:03

GoogleCodeExporter commented 8 years ago
Its not possible to render the actual FBML inside the swf, but you can setup a 
button with a similar "like" button skin and use that to call 
Facebook.api("/OBJECT_ID/likes", callback, params, "post"); 

Original comment by edwar...@gmail.com on 18 Apr 2011 at 8:33

GoogleCodeExporter commented 8 years ago
I'm looking a long time for a solution about Like button in flash. Can you be 
more specific, please?

Thanks!

Original comment by Kalin.Mu...@gmail.com on 21 Apr 2011 at 7:43

GoogleCodeExporter commented 8 years ago
I believe Edward solution uses likes as an app. It's different from the raw 
like button. You can see more on this solution here: 
http://labs.byhook.com/2010/08/03/facebook-like-button-in-flash/

The main difference is that you can't like any URL, you have to create topics 
for each content your users can like. Also, I believe you'll need the user 
permissions, so... it's kind of a whole different solution.

Please, tell me if I didn't got the point.

Cheers,
CaioToOn!

Original comment by caiot...@gmail.com on 21 Apr 2011 at 7:58

GoogleCodeExporter commented 8 years ago

Original comment by edwar...@gmail.com on 19 May 2011 at 9:52

GoogleCodeExporter commented 8 years ago
Here is a post that summarizes quite well all the solutions found for that 
issue :

http://www.nathalielawhead.com/candybox/facebook-like-in-flash-from-forums-to-bl
ogs

I finally decided to give up the like functionnality, as i'm pretty happy with 
the regular share one. It's actually nearly the same thing as it enables to 
post a link on someone's wall... the like enables to get the number of people 
who already liked it but that's all right ? So, if we have to create a FB app 
(which forces the user to authorize it), then no thanks, I'll stick to the 
regular share until Adobe or FB teams help us a little more... 

Original comment by sarahgru...@gmail.com on 2 Feb 2012 at 3:32

GoogleCodeExporter commented 8 years ago
She's giving that solution, calling js from flash with externallIinterface

Original comment by sarahgru...@gmail.com on 2 Feb 2012 at 3:37

Attachments: