Have tried following the instructions on https://developers.facebook.com/docs/...
and have tried adding the code generated from that page to add to my source file Facebook_Me.html but nothing happened.
How can I add these buttons to app?
Have tried following the instructions on https://developers.facebook.com/docs/...
and have tried adding the code generated from that page to add to my source file Facebook_Me.html but nothing happened.
How can I add these buttons to app?
Hi,
As I answered here you can add them in HTML component:
https://getsatisfaction.com/apperyio/...
Using the following code in HTML component does not seem to be working:
class="fb-share-button" data-href="https://developers.facebook.com/docs/..." data-type="button_count"
Above code is within div tags
Do I need to initialise/include javascript SDK as stated on https://developers.facebook.com/docs/...
If yes, how to do that?
Solved it
Both javascript SDK code and the plugin code as given above - have to be included in the same HTML editor box
Glad to hear that!
Hi -
Appery.io is using PhoneGap for building apps for different platforms (Android/iOS).
I think there should be a PhoneGap plugin for using Android built-in Share feature.
I have put this in the HTML component:
code
<div id="fb-root"><>
<script>(function(d, s, id) {
var js, fjs = d.getElementsByTagName(s)[0];
if (d.getElementById(id)) return;
js = d.createElement(s); js.id = id;
js.src = "//connect.facebook.net/nl_NL/sdk.js#xfbml=1&version=v2.3"
fjs.parentNode.insertBefore(js, fjs);
}(document, 'script', 'facebook-jssdk'));</script>
<div class="fb-like" data-href="https://developers.facebook.com/docs/plugins/" data-layout="box_count" data-action="like" data-show-faces="true" data-share="true"><>
/code
But still I only see the Share button in the Mobile Preview but not in appery.io Tester on my phone.
Any idea what goed wrong?
Kind regards,
Arie
Hi Arie,
Please try following code:
precode
<div id="fb-root"><>
<script>(function(d, s, id) {
var js, fjs = d.getElementsByTagName(s)[0];
if (d.getElementById(id)) return;
js = d.createElement(s); js.id = id;
js.src = "https://connect.facebook.net/nl_NL/sdk.js#xfbml=1&version=v2.3"
fjs.parentNode.insertBefore(js, fjs);
}(document, 'script', 'facebook-jssdk'));</script>
<div class="fb-like" data-href="https://developers.facebook.com/docs/plugins/" data-layout="box_count" data-action="like" data-show-faces="true" data-share="true"><>
/code/pre
Also please check this tread: https://getsatisfaction.com/apperyio/...
Regards.
Hi Yurii,
The first solution didn't work for me, still no Facebook on my device with Appery Tester.
I have read the given url and try your solution with the iframe but unfortually, still no Facebook share it on my phone.