Page 2 of 4

facebook like button

Posted: Thu Mar 14, 2013 12:57 pm
by Michael4771079

Hi,
I have had to delete this code because when app opens loads splash it is supposed to go to settings screen where facebook button is,

as soon as the navigates to this page the phones browser opens with very small fb button at the top of page and nothing else on page,
as its now in the browser and not in the app?


facebook like button

Posted: Thu Mar 14, 2013 3:56 pm
by Kateryna Grynko

Hi Michael,

You would need to export project to xCode source code, then open it in xCode and in file Cordova.plist change value "OpenAllWhitelistURLsInWebView" from NO to YES.

Image


facebook like button

Posted: Thu Mar 14, 2013 5:19 pm
by Michael4771079

Hi Katya,
changed AllWhitelistURls InWebView to yes, run app in ios 5 simulator,
app starts goes to settings screen, no fb buttons on screen?


facebook like button

Posted: Thu Mar 14, 2013 7:37 pm
by Kateryna Grynko

In xCode, open file Cordova.plist. In ExternalHosts section ensure there is an item with value = *. App may block access to Facebook due to incorrect ExternalHosts settings.

Image


facebook like button

Posted: Thu Mar 14, 2013 8:39 pm
by Michael4771079

Katya,
you are a very patient lady, thank you, running in sim, loads button and logs in and comment, all good.

is it possible to bring the project back to tiggzi from xcode or do I need to publish the app from here after these corrections

again thanks, I would never have sorted this


facebook like button

Posted: Thu Mar 14, 2013 9:21 pm
by Kateryna Grynko

No. After some corrections in source code are made you would need to build IPA from xCode.


facebook like button

Posted: Thu Mar 14, 2013 9:30 pm
by Michael4771079

Cheers Katya,


facebook like button

Posted: Fri Mar 15, 2013 12:13 pm
by Michael4771079

Hi Katya,
ran into another problem,
like button works on sim and device,

but on device when it takes you to fb login page, and you click login,
screen goes blank, just a white screen and does not return to app,

if the user is already logged the button works, allows comment etc.
ipad 4 ios 6.01


facebook like button

Posted: Fri Mar 15, 2013 5:31 pm
by Sean Kelley

I have been following this thread...just implement via info above and get the same white screen on Nexus 7 with android 4.2.2 the first time I was taken to a browser and tried to login to FB. I noticed when I clicked back and tried to like something in app it worked...sort of.

I then looked at numerous other data items that would be like-able in my app and they were already marked as liked (but I have not like anything other than the first). After opening app again, I can like things separately so maybe the odd behavior of the initial white screen made things strange at first.

When I liked something, on facebook it showed an odd graphic of an envelope icon for photo. Maybe I can resolve that with adding Open Graph protocol tags.

I also noticed that send button is not showing either.

I am also curious about the fact that my device sent me to a web browser to login even though I have the FB app installed and I am logged in to it. After my initial issues, I then logged out of facebook on external version of chrome . I reopened my app and could still like things and comment so is it possible that the in-app login status might be restricted to in-app browser? If so, seem strange because I would never be able to log out.

I am not sure how to test moving forward now because I need to log out of fb on the in-app browser to restest for initial use of like button again. Perhaps uninstalling app will work.

Obviously, I need to play with it more to try to figure out what is happening.


facebook like button

Posted: Fri Mar 15, 2013 5:54 pm
by Kateryna Grynko

Hello,
We are still working on it.
This needs some time.