Hi all,

I'm using angularjs to fetch facebook data using the openfb module you can 
find 
here<https://github.com/ccoenraets/sociogram-angular-ionic/blob/master/www/js/openfb-angular.js>
.

Now i would like to manage data fetching from the Facebook API using ETags 
in order to limit the network traffic (as explained 
here<https://developers.facebook.com/docs/reference/ads-api/etags-reference/>
).

The problem is that by using the openfb module, there’s no way I can access 
the response headers,  while I am successfully fetching *result.data* in 
the calls.
E.g., I’ve been trying the following, but with no success. I got the 
following error: *TypeError: Object #<Object> has no method headers*. HOW 
IS THAT POSSIBLE!?

                    // Get user events
                    OpenFB.get('/me/events')
                        .success(function (result) {
                            try {
                                var ETag = result.headers(['ETag']);
                            }
                            catch(err) {
                                alert(err.message);
                            }

                        })

                        });

Any hint on this? 
PLZ need help!

Thanks,
Elia

-- 
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