Hi Elia,

I have no experience with this openFB module, I just read the source now. 
openfb.get is just doing an $http call, so the documentation for 
$http<https://docs.angularjs.org/api/ng/service/$http>
 
should be of help.
Here is a small quote:

The $http service is a function which takes a single argument — a 
configuration object — that is used to generate an HTTP request and returns 
a promise <https://docs.angularjs.org/api/ng/service/$q> with two $http 
specific methods: success and error.


   1.   $http({method: 'GET', url: '/someUrl'}).
   2.     success(function(data, status, headers, config) {
   3.       // this callback will be called asynchronously
   4.       // when the response is available
   5.     }).
   6.     error(function(data, status, headers, config) {
   7.       // called asynchronously if an error occurs
   8.       // or server returns response with an error status.
   9.     });

I think that will answer your question?
Regards
Sander

-- 
You received this message because you are subscribed to the Google Groups 
"AngularJS" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/angular.
For more options, visit https://groups.google.com/d/optout.

Reply via email to