Win a copy of Testing JavaScript Applications this week in the HTML Pages with CSS and JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
  • Campbell Ritchie
  • Bear Bibeault
  • Ron McLeod
  • Jeanne Boyarsky
  • Paul Clapham
  • Tim Cooke
  • Liutauras Vilda
  • Junilu Lacar
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • fred rosenberger
  • salvin francis
  • Piet Souris
  • Frits Walraven
  • Carey Brown

Re: Could you help with a question from restfb1.14 ?

Posts: 10
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello ,
Hope you have a good afternoon. I am having a question related to the facebook restfb1.14, and I wish to get your helps, and advice.

According to restfb1.14 facebook document, there is a facebookclient class and obtainAppAccessToken, and obtainExtendedAccessToken methods.

But however , when i called those two methods within my sample test codes, there were undefined. I do not know what ' s wrong with my code. So if you

have a few minutes, could you please show me what I did wrong.

Below is my code

Both method obtainAppAccessToken and obtainExtendedAccessToken were undefined in facebookclient class. I don't know why because according in the facebookclient document, there are there for us to use.

Please help and thank you so much in advance for all of your help!!

Posts: 67430
Mac Mac OS X IntelliJ IDE jQuery Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Because you do not prefix the method calls with either a class (for static methods) or an object (for instance methods), it is assumed that the methods are defined within the current class. Which, of course, they are not.
WHAT is your favorite color? Blue, no yellow, ahhhhhhh! Tiny ad:
Thread Boost feature
    Bookmark Topic Watch Topic
  • New Topic