I\'m trying to create a Messenger Web View (https://developers.facebook.com/docs/messenger-platform/messenger-extension) by using the Messenger Extensions Javascript SDK.
<
MessengerExtensions.getUserID(function success(uids) {
// triggering on devices
self.defer.resolve(uids.psid);
}, function error(err) {
MessengerExtensions.getContext(config.fbApp.id, function success(result) {
// triggering on desktop
self.defer.resolve(result.psid);
}, function error(result) {
self.defer.reject(result);
console.log('Context Error ', result);
});
});