bot framework facebook multiple pages - facebook-messenger

llhi,
I have configured Facebook connection thru Bot Framework, which has requested to configure one single Facebook page, app, and then token. Is it possible to indicate how to manage several Facebook pages thru the same Microsoft Bot Framework? If not possible, what are the available options?
Thx for your feedback,
Regards

If I understand your question correctly, you would like a bot that works across several Facebook pages? Do to this you'll need to create multiple registrations in the BotFramework for your bot (one for each Facebook page). Each registration can call back to the same bot (just use the same webhook).

A bot can configure on multiple fanpages. I tested it, just enter new pageId and PageToken then resubmit. It still work well.
The problem is the UI configure BotFramework not display all fanpages that authorized. When click deauthorized, it delete all pages. We can wait dev team upgrade it or create multiple registrations like Lars said . I think it will work better soon.

Related

Is subdomain possible in React JS

Hi I am creating an app which have 3 parts- Admin, Client and User. Admin has all the features, while client has some of the features while client has some. So I thought to have a common code base and will be providing access based on subdomain.
Now I could not find any suitable article across the internet for the same.
Lets say the user clicks the link admin.company.in/login it will open admin login page.
Similarly, client.company.in/login will open client's login page
How can I achieve this and also test it locally?
React has nothing to do with this. You have to build two different react applications and server them client.company.in and admin.company.in respectively. To achieve this you have to deploy the application to the server and server with webserver (eg:nginx).

Facebook Messenger Page webhook missing

I was create new app and for testing purposes I using Ngrok, for generating temporary URLs for my localhost, everytime it expires I must in app change that URL. Apps before have a option to subscribe again to different URL, but now I cannot change it.
It shows me only few options without page subscription and in Messenger Settings I can only add another permissions to my app. No way to change URL of page subscription. My solution for now is deleting apps and creating new.
Any new changes in this platform? Week ago I was develop apps with pages permissions without any problem and change it periodically.
Now I see only this:
Any help, or solution?

apiRTC.disconnect(); does not appear to work with cordova

I have setup both a classic ASP site and a cordova angularjs ionic app that allow video conferencing with apiRTC. When the user logs out of the web site apiRTC.disconnect(); works so a new apiRTC.init can be used when a different user logs in.
In the app, apiRTC.disconnect(); does not do anything so the user appears to still be online to other users, and when a different user logs in, it has no affect since init does not work.
Can you look at apiRTC.disconnect() under cordova and see if there is a general issue?
I have checked the issue by doing a test using our tutorial : https://github.com/apizee/ApiRTC-mobile and adding a button that call apiRTC.disconnect() on Android.
Others users receive the disconnection information and remove the user from the connectedUsersList.

Showing Google Analytics Data in real time

I would like to show number of visitors on a site since beginning of the month, number of users on the current day and currently on site.
I have Google Analytics installed, I tried to solve this issue with Embed API by enabling Google Analytics API from developer console - but I requires user authorization, etc.
What would be the easiest way to show analytics on-site without user authentication and accepting access by Embeded API, etc. Application is written in Angular, so Javascript API is the one I look for.
Thank you for any suggestion.
Authorization has to happen in order to get the data you want. Either you can let visitors to your site authorize themselves, or you'll have to authorize server-side on their behalf.
Once authorized, you can do something similar to what the Third Party Visualization Embed API demo shows. It uses a custom ActiveUsers Embed API component and includes the source code to show how it works.
Whether you use the ActiveUsers component or not, the basic gist is that once the users is authenticated via the Embed API, you have access to the method gapi.client.analytics.data.realtime.get, which you can use to query this data.
Here's where that happens in the source code for the ActiveUsers component:
https://github.com/googleanalytics/ga-dev-tools/blob/master/src/javascript/embed-api/components/active-users.js#L69-L87
Authentication with the Analytics service is mandatory. But the OAuth 2.0 Service Accounts (for Server to Server Applications) can be used to automate it in many cases.
It's unclear to me (from a quick scan) if the Auth options of the Embeed API would work with the automated authentication scheme, you may want to go through the details.
You should be able to use the Analytics Core Reporting API and maybe the Analytics Real Time Reporting API (beta) which work with the automated authentication according to their guides (look for the Authorisation sections on the left frames of the respective guides).
Donno if this qualifies as easy, tho, YMMV :)

GAE Java Facebook server authentication double call

I am having a weird issue. I created an application on Google App Engine and have a Login with Facebook button on it, for which I am doing server side authentication.
I give the redirect_url, and facebook was calling the URL correctly with no issues. The session parameters that I set were being retrieved on the redirect call and everything was working fine.
Yesterday, I got a domain on godaddy and mapped it to my appspot account using google apps. Now when I click on Facebook login, I am getting two calls on the redirect uri, the first one carries the session varaibles and the session one doesn't. I am not very familiar with domain mapping and followed the steps on Google Apps.
Can anyone help me in the right direction on this.
it's a little out of date, but i documented some GAE to Facebook gotchas here:
http://javagwt.blogspot.com/2010/08/facebook-apps-on-app-engine-without-any.html
It may also help to read about naked domain mapping with godaddy, to make sure you're not getting bounced around. Even though you are mapped to your domain through google apps, you can try to put the redirect URL for facebook as yourappid.appspot.com - the redirect URL you provide, and the one in your facebook app settings must match.
My app, nimbits.com writes to facebook from GAE all of the time - the code is on github under server/facebook
https://github.com/bsautner/com.nimbits/tree/master/nimbits-tds/src/com/nimbits/server
Thanks for the answers bsautner and Michele. I finally figured out the issue. I have google ads on my website. The google ads was trying to parse the URL content and creating a second request for every request that I create. After removing the google ads, I get a single callback with session values retained. It all works now. The final output is this website - www.imagecrashers.com. I will be glad for any suggestions from the gurus here, regarding layout or api calls simplification. Thanks again to all.

Resources