Code Monkey home page Code Monkey logo

Comments (7)

pc035860 avatar pc035860 commented on July 18, 2024

Hi @karypid ,

The module does support FB.Event.subscribe, which is used in the implementation of ezfb-xfbml directive.
I'll try to recreate your situation and figure out where the problem is ASAP.

Thank you for the issue!

from angular-easyfb.

pc035860 avatar pc035860 commented on July 18, 2024

I just created a plunk according to your description.

http://plnkr.co/edit/lgijTPgOuqpdiEmi7R7V?p=preview

Which seems to work fine.

Though I do find a bug unrelated to your problem, and I'll open a new issue for myself.

from angular-easyfb.

karypid avatar karypid commented on July 18, 2024

Interesting! The plunk does work and it's exactly what I'm doing! It seems like there's something in my set-up that's causing this...

Basically, I am using a yeoman scaffold (yo angular) and testing with "grunt server".

I copy pasted your plunkr demo into my project as follows:

  • copy-paste plunkr/app.js into app/app.js
  • copy-paste plunkr/index.html into index.html
  • copy-paste plunkr/home.html into app/views/home.html
  • copy-paste plunkr/login.html into app/views/login.html

I edited the routes to add the views/ prefix and app.js to define my own app id. Running "grunt server" fires up the browser (firefox) and shows the home.html view which displays (even though I am logged into facebook):

{
"status": "unknown"
}

The login view shows the facebook icon. I can log in via the pop-up but when the pop-up closes I still see the facebook logo prompting me to login (as if I haven't logged in). Going back to the home view I see the same "unknown" status.

I wonder if node.js requires some extra configuration...

from angular-easyfb.

karypid avatar karypid commented on July 18, 2024

Ok, can you try your plunk with Firefox version 26? That's the one I'm using and it seems to have the problem...

I use Chrome for general browsing and Firefox for dev testing. So I visited your plunk with Chrome and then tested my app with Firefox (doesn't work).

I just tried the plunk with Firefox and it doesn't seem to work for me...

On the bright side, I tried my app with Chrome and it does indeed work!

from angular-easyfb.

pc035860 avatar pc035860 commented on July 18, 2024

Hi @karypid ,

I just have the plunk tested on my Firefox 26, and it works.
angular-easyfb-7

I guess the issue has something to do with your development environment.

Facebook SDK may have to notify the events through some cross domain technique, which means you might need some configuration for the localhost development.

When I was setting up the demo page on plunker, I've configured the plnkr-demo app to be able to work with run.plnkr.co too.

from angular-easyfb.

pc035860 avatar pc035860 commented on July 18, 2024

BTW, the configuration I mentioned is the Facebook App configuration, which is configurable at

https://developers.facebook.com/apps

from angular-easyfb.

karypid avatar karypid commented on July 18, 2024

I still can't figure out why my Firefox doesn't work. For the moment I am using Chrome which seems to work fine.

In any case, I don't think this is an angular-easyfb issue. I stepped through the code and the only difference seems to be the random identifier generated when forming the URL param to pass to the arbiter. In the network log, I can see that Facebook genuinely returns an unknown status for the request.

I will keep looking into this when I have more time, and post back when I figure it out...

from angular-easyfb.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.