Sencha Touch 2: Facebook JS SDK does not work on the device, only in a computer browser

I am developing a Sencha Touch 2 application that uses the Facebook SDK to show the Facebook feed on the list. It works fine in my browser (localhost), but when I launch my application on my device (iPhone iPad), the feed does not load. Not when I open it through localhost in Safari on devices.

When I use the Safari console on my iPhone, it shows two logs that do not appear on my computer:

"JavaScript file on line 44: http://connect.facebook.net/en_US/all.js : received message of object type from https://s-static.ak.facebook.com , expected line"

Is this the cause of the problem? Perhaps the Javascript SDK FB functions are not recognized on my device?

Can someone help me? Thanks!

+6
source share
2 answers

Where you define the fb script and where the fb-root div is, I had the same problem as before, but that was because the div was always overridden or overwritten by another view, so make sure if you can Post some from the code would be better,

0
source

Do you have fb domains added to the whitelist of applications? I had a similar problem, and it was resolved by adding fb domains to the access tag of the configuration file.

0
source

Source: https://habr.com/ru/post/921409/


All Articles