Rails, Facebooker i aplikacje Facebook - Jak testować lokalnie?

Witam,

Czy ma ktoś z Was może doświadczenie z aplikacjami Facebook lub jest w stanie mi pomóc?

Jak można lokalnie testować aplikacje Facebook? Czy można jako “Canvas Callback URL” podać “http://localhost:3000”? Podałem, ale wywala się na Facebooku błędem “Błąd ładowania strony aplikacji”. Wiem, że jest do tego jakieś tunelowanie wywoływane “rake:tunnel:start”, ale czy zadziała to pod Windowsem?

Bardzo proszę o pomoc, bo już nie wiem jak sobie z tym poradzić, a w sieci również nic pomocnego nie znalazłem…

a nie możesz jako canvas url podać http://twojeip:3000 ? ofc musisz mieć do tego zewnętrzne ip lub przekierowany port na routerze

Problem w tym, że ze sprawami sieciowymi jestem zielony. Próbowałem przypisać ip do domeny w dyndns.org, ale nie widzi mojego lokalnego hostu na zewnątrz… Nie wiem jak ustawić to na ruterze…

A wie ktoś może jak ustawić “reverse ssh tunnel” na localhoście pod Windows?

Czesc,

Zeby wszystko ladnie testowac musisz miec serwer testowy dostepny na zewnetrznym IP - albo jesli takiego nie masz mozesz sobie IP tunelowac zeby bylo dostepne na zewnatrz. Mozesz sie sam bawic w tunelowanie albo zalozyc konto np. tutaj: http://tunnlr.com/

Tworzysz konto, dostajesz adres, adres ustwiasz w facebooker.yml calback URL. Zanim zaczniesz prace odpalasz task

rake facebooker:tunnel:start

i wszystkie requesty do localhosta sa tunelowane na zewnatrz i widoczne z facebooka.

Pozdrawiam,

Próbuje testować lokalnie, zainstalowałem facebookera jako plugin i odpaliłem zgodnie z tym tutorialem

http://facebookertutorial.professionalnerd.com/

[quote]artur@artur-desktop:~/projects/foo_facebook$ script/server & rake facebooker:tunnel:start &
[1] 3803
[2] 3804
artur@artur-desktop:~/projects/foo_facebook$ (in /home/artur/projects/foo_facebook)
=> Booting Mongrel
=> Rails 2.3.5 application starting on http://0.0.0.0:3000
=> Call with -d to detach
=> Ctrl-C to shutdown server
Starting tunnel comstam.megiteam.pl:8888 to 0.0.0.0:3000
OpenSSH_5.1p1 Debian-6ubuntu2, OpenSSL 0.9.8g 19 Oct 2007
debug1: Reading configuration data /etc/ssh/ssh_config
debug1: Applying options for *
debug1: Connecting to costam.megiteam.pl [77.79.227.67] port 22.
debug1: Connection established.
debug1: identity file /home/artur/.ssh/identity type -1
debug1: identity file /home/artur/.ssh/id_rsa type -1
debug1: identity file /home/artur/.ssh/id_dsa type -1
debug1: Remote protocol version 2.0, remote software version OpenSSH_4.3p2 Debian-9etch3-mt2
debug1: match: OpenSSH_4.3p2 Debian-9etch3-mt2 pat OpenSSH_4*
debug1: Enabling compatibility mode for protocol 2.0
debug1: Local version string SSH-2.0-OpenSSH_5.1p1 Debian-6ubuntu2
debug1: SSH2_MSG_KEXINIT sent
debug1: SSH2_MSG_KEXINIT received
debug1: kex: server->client aes128-cbc hmac-md5 none
debug1: kex: client->server aes128-cbc hmac-md5 none
debug1: SSH2_MSG_KEX_DH_GEX_REQUEST(1024<1024<8192) sent
debug1: expecting SSH2_MSG_KEX_DH_GEX_GROUP
debug1: SSH2_MSG_KEX_DH_GEX_INIT sent
debug1: expecting SSH2_MSG_KEX_DH_GEX_REPLY
debug1: Host ‘costam.megiteam.pl’ is known and matches the RSA host key.
debug1: Found key in /home/artur/.ssh/known_hosts:9
debug1: ssh_rsa_verify: signature correct
debug1: SSH2_MSG_NEWKEYS sent
debug1: expecting SSH2_MSG_NEWKEYS
debug1: SSH2_MSG_NEWKEYS received
debug1: SSH2_MSG_SERVICE_REQUEST sent
debug1: SSH2_MSG_SERVICE_ACCEPT received
debug1: Authentications that can continue: publickey,password
debug1: Next authentication method: publickey
debug1: Offering public key: xxxxxxx@xxxxxx
debug1: Server accepts key: pkalg ssh-rsa blen 277
debug1: Authentication succeeded (publickey).
debug1: Remote connections from *:8888 forwarded to local address localhost:3000
debug1: Entering interactive session.
debug1: remote forward success for: listen 8888, connect localhost:3000
debug1: All remote forwarding requests processed

Processing WelcomeController#index (for 127.0.0.1 at 2010-04-28 12:34:04) [GET]
Parameters: {“action”=>“index”, “controller”=>“welcome”}
Rendering welcome/index
Completed in 6ms (View: 2, DB: 0) | 200 OK [http://localhost/welcome]
debug1: client_input_global_request: rtype keepalive@openssh.com want_reply 1
debug1: client_input_global_request: rtype keepalive@openssh.com want_reply 1
debug1: client_input_global_request: rtype keepalive@openssh.com want_reply 1
debug1: client_input_global_request: rtype keepalive@openssh.com want_reply 1
debug1: client_input_global_request: rtype keepalive@openssh.com want_reply 1
debug1: client_input_global_request: rtype keepalive@openssh.com want_reply 1
debug1: client_input_global_request: rtype keepalive@openssh.com want_reply 1
debug1: client_input_global_request: rtype keepalive@openssh.com want_reply 1
debug1: client_input_global_request: rtype keepalive@openssh.com want_reply 1
debug1: client_input_global_request: rtype keepalive@openssh.com want_reply 1
debug1: client_input_global_request: rtype keepalive@openssh.com want_reply 1
debug1: client_input_global_request: rtype keepalive@openssh.com want_reply 1
debug1: client_input_global_request: rtype keepalive@openssh.com want_reply 1
debug1: client_input_global_request: rtype keepalive@openssh.com want_reply 1
debug1: client_input_global_request: rtype keepalive@openssh.com want_reply 1
debug1: client_input_global_request: rtype keepalive@openssh.com want_reply 1
debug1: client_input_global_request: rtype keepalive@openssh.com want_reply 1[/quote]
http://localhost:3000 działa ok, natomiast http://costam,megiteam.pl:8888/welcome próbuje w nieskończoność załadować stronę. Może musze jakies porty u mnie odblokować ? Jestem za routerem.