Page 1 of 2

FB Like iFrame - Webpage not available.

Posted: Wed Nov 12, 2014 2:20 pm
by Brian Evans

trying to add a FB Like button using their social plugin https://developers.facebook.com/docs/... and can't get any of them to work. The iFrame for example just shows webpage not available.


FB Like iFrame - Webpage not available.

Posted: Wed Nov 12, 2014 2:59 pm
by Maryna Brodina

Hello!

It is not possible to run FB in a frame because of security reasons. You can use Facebook API http://devcenter.appery.io/documentat...


FB Like iFrame - Webpage not available.

Posted: Wed Nov 12, 2014 4:11 pm
by Brian Evans

Then there is no way to like a FB page within the app? They tell you directly you have to use their social plugin for FB Lkes.

Per FB documentation.

"it is not possible to like a Facebook Page via any API"


FB Like iFrame - Webpage not available.

Posted: Thu Nov 13, 2014 3:25 am
by Yurii Orishchuk

Hi Brian,

Please follow this solution:

1 Navigate to https://developers.facebook.com/docs/...

2 Fill like button form. http://i.imgur.com/i5Jui8k.png/

3 Click "Get code" http://i.imgur.com/6DjqhdH.png

4 Then window will appear. Choose "Iframe" tab and copy code below. http://i.imgur.com/D8d8ByR.png

5 Open your page. And putt "HTML" component on it.

6 In HTML component properties set dimmensions with "auto" and "auto" value. http://i.imgur.com/Yqx65pS.png

7 Click "Edit HTML" for HTML component. And then use given in 4th step HTML code. http://i.imgur.com/2dRfF8z.png

That's all.. After you will get following result on your page: http://i.imgur.com/1QQCajX.png

Regards.


FB Like iFrame - Webpage not available.

Posted: Thu Nov 13, 2014 11:33 am
by Brian Evans

That's exactly what I've done but it shows up as "webpage not available"

Image

Image


FB Like iFrame - Webpage not available.

Posted: Thu Nov 13, 2014 11:56 pm
by Yurii Orishchuk

Hi Brian,

Please did you tried to pass all suggestion step by step?

Here is my page implementation: http://appery.io/app/view/93534752-d9...

Please try and let me know if you have the same issue on my app.

Regards.


FB Like iFrame - Webpage not available.

Posted: Fri Nov 14, 2014 12:13 am
by Brian Evans

Works in browser, yes. But I can't test that link in app form to see if it works.

Mine works fine in a browser as well. Just not on mobile devices like the Android screenshot above.


FB Like iFrame - Webpage not available.

Posted: Fri Nov 14, 2014 3:42 am
by Yurii Orishchuk

Hi Brian,

Yes you are right on device i have the same problem.

So there is some restriction from phonegap.

Please take a look on this solution: http://community.phonegap.com/nitobi/...

Regards.


FB Like iFrame - Webpage not available.

Posted: Fri Nov 14, 2014 1:38 pm
by Brian Evans

That's to LINK to FB using the childBrowser and opening FB in the devices browser. This is not what I want. I just want the simple Like button inside the app and clicking it likes the FB page. Just like it does in the browser when testing.


FB Like iFrame - Webpage not available.

Posted: Mon Nov 17, 2014 12:11 am
by Yurii Orishchuk

Hi Brian,

Unfortunatly it's FaceBook service and it required to be logedin to use this functionality. To be logedin in FB in phonegap app you should use childBrowser.

Also here is no abiltity to make like through any api(FB limitations):
Details is here: https://developers.facebook.com/docs/...

http://prntscr.com/5757g0/direct

Regards.