Open raulvejar opened 13 years ago
This code does not work anymore, at least I'm getting errors. Perhaps it needs to be updated?
It still works (just checked it). Of course you would have to update the rakefile and build.yml if you are using the latest version of Rhodes framework. What problem are you getting?
That must be the problem then, I'm using the latest version of Rhodes. After logging in to facebook I just get a blank black page. Oh and after clicking the button "check if like..." I get a quick flash of "error loading page". Perhaps this is all related to the rakefile & build.yml. Thanks for the quick response!
Mmm... from your description it sounds like it is something else (if it was a rakefile/build problem you wouldn't be able to launch the app)... what platform/emulator are you using to test?
I used android through rhosimulator, only thing I have working at the moment because of some javac issues.
Mac or Windows? I'm testing it in windows and it works fine under those settings... From your description it sounds like a problem between the facebook authorization dialog and the browser inside your rhosimulator. Have you managed to authorize the app? Do you see a facebook login dialog of some sort?
Yep I got logged in & authorized the app. I am running from Mac.
On Fri, Feb 17, 2012 at 5:48 PM, Raul Vejar < reply@reply.github.com
wrote:
Mac or Windows? I'm testing it in windows and it works fine under those settings... From your description it sounds like a problem between the facebook authorization dialog and the browser inside your rhosimulator. Have you managed to authorize the app? Do you see a facebook login dialog of some sort?
Reply to this email directly or view it on GitHub:
https://github.com/rhomobile/rhodes-system-api-samples/pull/2#issuecomment-4022360
Try deauthorizing the app from your facebook account settings and run the demo again (sometimes facebook gets messed up that way)
I'll try running the demo on my mac and see if it is having any issues. BTW: I'm running Rhodes 3.2.3, it shouldn't make a difference though...
Same thing. I'm running 3.3.2. "Hopefully" you'll run into the same issues when you run it on your Mac. We'll see. :)
On Fri, Feb 17, 2012 at 5:52 PM, Raul Vejar < reply@reply.github.com
wrote:
Try deauthorizing the app from your facebook account settings and run the demo again (sometimes facebook gets messed up that way)
I'll try running the demo on my mac and see if it is having any issues. BTW: I'm running Rhodes 3.2.3, it shouldn't make a difference though...
Reply to this email directly or view it on GitHub:
https://github.com/rhomobile/rhodes-system-api-samples/pull/2#issuecomment-4022431
I have the same issue on 3.3.3. I get the very quick page "error loading page". Anyone knows how to fix it? Except this issue everything works fine.
Found the answer... By using rel="external" on your link you bypass the AJAX part of the loading -- this means the page loads, but it's not injected into the DOM. Sorry for the newbie question!
This code was written for the old jqtouch, keep that in mind when copyin and pasting the view code
I have a problem... After logging, it shows website of Facebook.. i though it should show a Fb permissions and then go back -> app.. with a message...
def facebook_check_callback @message = nil if @params['entered'].to_s == 'true' @message = "You really like Rhomobile! Rock on!" else @message = "You don't like Rhomobile! Why?" end end
Connect Fb -> Presentation before login -> login -> Website (Facebook) ¿?
I think it's about " redirect_uri " and localhost app.. because its a mobile app...
Yes, it should go back to the app, it's built to work that way and with a mobile app in mind so it's not because of that. It should show the facebook log in prompt, then the permissions prompt and then go back to the app
The example was written with jqtouch in mind, if you are using jquery mobile you should add rel="external" on your link you bypass the AJAX part of the loading
On Sat, Apr 21, 2012 at 2:24 AM, Eduardo Adbeel Arenas < reply@reply.github.com
wrote:
I have a problem... After logging, it shows website of Facebook.. i though it should show a Fb permissions and then go back -> app.. with a message...
def facebook_check_callback @message = nil if @params['entered'].to_s == 'true' @message = "You really like Rhomobile! Rock on!" else @message = "You don't like Rhomobile! Why?" end end
Connect Fb -> Presentation before login -> login -> Website (Facebook) ¿?
I think it's about " redirect_uri " and localhost app.. because its a mobile app...
Reply to this email directly or view it on GitHub:
https://github.com/rhomobile/rhodes-system-api-samples/pull/2#issuecomment-5258455
I just add rel="external" on the link:
a href="<%= url_for :action => :connect_to_facebook %>" rel="external"> Connect </a
This link goes to login... But afeter logging, i shows the same: website of Facebook
I think it's about localhost app
Im using emulator Android 2.1. Rhodes 3.3.2 Ruby 1.9.2
what url are you navigating to? Use the log console to figure out the exact url you are using
On Sat, Apr 21, 2012 at 12:34 PM, Eduardo Adbeel Arenas < reply@reply.github.com
wrote:
I just add rel="external" on the link: Connect This link goes to login... But afeter logging, i shows the same: website of Facebook
Reply to this email directly or view it on GitHub:
https://github.com/rhomobile/rhodes-system-api-samples/pull/2#issuecomment-5261713
RUN! I used my appId... but when I write your appId... Work!
So.. my configuration is bad. Can you tell me what do you do in developers.facebook.com, please?
I'm attaching 2 screens with the settings for the rhomobile like app.
BTW: I speak Spanish, if that is your first language... [image: Inline image 1]
[image: Inline image 2] On Sat, Apr 21, 2012 at 1:52 PM, Eduardo Adbeel Arenas < reply@reply.github.com
wrote:
RUN! I used my appId... but when I write your appId... Work!
So.. my configuration is bad. Can you tell me what do you do in developers.facebook.com, please?
Reply to this email directly or view it on GitHub:
https://github.com/rhomobile/rhodes-system-api-samples/pull/2#issuecomment-5262257
Dónde están los screens?
Estan embebidos en el mail anterior
On Sat, Apr 21, 2012 at 6:54 PM, Eduardo Adbeel Arenas < reply@reply.github.com
wrote:
Dónde están los screens?
Reply to this email directly or view it on GitHub:
https://github.com/rhomobile/rhodes-system-api-samples/pull/2#issuecomment-5264234
Cómo los veo? solo veo: [image: Inline image 1]
[image: Inline image 2]
Con cualquier cliente de correo que te muestre imagenes dentro de los mails... demoran un poco en descargar....
A la noche te las mando en un nuevo mail como attachments esta vez si aun tienes problemas...
On Mon, Apr 23, 2012 at 1:36 AM, Eduardo Adbeel Arenas < reply@reply.github.com
wrote:
Cómo los veo?
Reply to this email directly or view it on GitHub:
https://github.com/rhomobile/rhodes-system-api-samples/pull/2#issuecomment-5274609
ok gracias.
Me decia del url el cual navega mi app, no? Qué pongo en la consola para averiguar el URL exacto que estoy utilizando
Tienes que poner el url del servicio de redireccion que estas usando, en el caso del app de demostracion que usa el sample: http://redirect.me
Hola como están, bueno a mi si me corre sin problema pero no arranca en el aplicativo de FB sino en una ventana externa. Hay forma de ejecutarlo en el app de FB? Saludos.
Thank you guys, rel="external". Fixed it for me
Includes code example of how to use Facebook connect to integrate facebook into a rhodes app by using a redirect service to deal with Rhode's dynamic ports and Facebook requirements that redirect urls are defined in the configuration of the facebook app