Facebook Messaging API Checkbox Plugin - javascript

Can anyone tell me where to get the PAGE_ACCESS_TOKEN??
I try to connect my website using Facebook's Messenger API, but I'm stuck trying to whitelist my domain because it requires a PAGE_ACCESS_TOKEN.
Where can I find my PAGE_ACCESS_TOKEN?
https://developers.facebook.com/docs/messenger-platform/plugin-reference/checkbox-plugin
Please help
Thanks

You need to start reading at the very beginning, donĀ“t just jump in at a random place in the docs: https://developers.facebook.com/docs/messenger-platform/guides/quick-start
Take a look at number 3: "Get a Page Access Token"

Related

Twilio send SMS with Google Maps "Pin"

There's a feature on smartphones where you can send someone a "pin" of where you're at or another location. This can be on Google Maps, Apple Maps, etc..
On the messaging side..this shows up as a 'preview' of the pin that's clickable and will then launch the respective maps app.
How can I send said "pin" through Twilio?
I noticed the format of these pin urls looks like
https://maps.app.goo.gl/9s8sdsiuGPitgT6?g_st=ic
Note the maps.app part. I thought this is what would make the preview work.
I tried that with Twilio and it just results in sending over a hyperlink. (Opening up the hyperlink does usually open up the respective app on the phone. That's fine..but I'm really tryna get the preview to show up too)
Is this even possible with Twilio? Is this something I'd need to use the MMS API for?
Note: I'm using a Twilio Serverless function with JS to achieve this.
Thanks!
I have an app built on Twilio and send URLs frequently. To my understanding - the link preview feature is dependent on the device receiving the message. Here is an overview from Twilio that explains how link previews work.
As an alternative - you might check out what3words as an option for sending location info. We needed to send very specific meeting locations to people and this helped. Sending a general address was never specific enough - and this let you save a very specific location and share it with others.
Hope this helps!

implement Auth0 into chrome extension with one time use tokens

I'm making a chrome extension where I want to create a security method for my chrome extension to stop it from getting shared without me in the process
I have an idea to generate a token somewhere (usually some backend, maybe server of the website that gets user registrations/payments my website which I am building with worpress), send token via email, get email+token in extension, make a request to the webserver to verify that they're valid. This seems like a typical auth flow except the password is now the token, which is generated instead of the set by the user. In other news, I have more ideas (Extension-side prng with shared seed, can check to see if the token is within X generations for eg.)
I want to be able to sell tokens on my website which only allow one user to prevent the token from being shared.
I tried to setup the Auth0 for the chrome extension but I keep getting errors and the process doesn't lead to how I would want to be done.
youtu.be/D0M1wid1L3Q?t=353
youtu.be/D0M1wid1L3Q?t=418
is a great example of what I want to be able to do. Can anyone help me doing this? I am building my website in wordpress not hard coding it so I'm not sure on How to do this exactly
If anyone can point me in a direction of what I am supposed to do or maybe provide some code that could help me?
I tried to
npm install auth
and put that in my manifest.json bit it doesn't work and it seems as if it doesn't do what I want.
I have found this url which might get me heading in the right direction:
https://auth0.com/docs/api-auth/tutorials/authorization-code-grant
I really appreciate the help.

Office-js: How I can reply automatically with Outlook Web Add-in?

I'm using Outlook Web Add-in. I need a way to send an email automatically. Something similar to this:
var item = Office.context.mailbox.item;
item.displayReplyAllForm("Default Message");
but without showing the Reply Form. I need to send a message directly and
maybe only show a message like "replying... please wait" or something similar when I click the button.
How I can do that? Please help and thanks a lot.
You cannot do this from the JavaScript library directly. You would need to use Microsoft Graph API to handle sending the message. You can find instruction on how to do this in the documentation under Use the Outlook REST APIs from an Outlook add-in.
There are couple of solution one is with graph and another is with exchange api. For graph you need to little bit of extra work to get the token and auth flow working.
The other approach is to use exchange API, you don't need to do anything to do these calls you already have the authentication setup needed for you in dong this call.
Please see this documentation for the more details.
https://msdn.microsoft.com/en-us/library/office/dd633704(v=exchg.80).aspx
https://learn.microsoft.com/en-us/outlook/add-ins/web-services
If you want a client only solution you can directly call the Office.context.mailbox.makeEwsRequestAsync API (refer documentation here: https://dev.office.com/reference/add-ins/outlook/1.5/Office.context.mailbox?product=outlook)
To construct the soap request to be used in makeEWSRequest, you can use: https://msdn.microsoft.com/en-us/library/office/dn600292%28v=exchg.150%29.aspx?f=255&MSPPError=-2147217396
Note that makeEWSRequest is not supported in mobile clients.
You should ideally request for a graph token using getCallbackTokenAsync API and then use the graph APIs with the token to send the email. This should work on all clients and is a preferred way to accomplish this scenario.

linkedin javascript api domain is restricted to localhost

I'm trying to use linkedin javascript api, but when I run a script I get an error 'javascript api domain is restricted to localhost'. Does anyone know what is that? Please, help!
Go to https://www.linkedin.com/secure/developer
Click on the application name you're using.
Add your domain to JavaScript API Domains:
Save changes.
This should fix your issue.
1 create a new app on LinkedIn devloper
2.in URL you should write path like this
http://localhost/linkdin/index.php/
then save
after it your problem will be resolve

Google Analytics API - Get Pageviews for Dashboard

I am trying to create a blog dashboard that will connect to your Analytics account and show BASIC stats on your site. I am using Node.js for the blog system, so it would be best if it was in Javascript so I can convert it for Node.
I am looking for a how-to guide, or someone to point me in the right direction. I have tried some sample code on the web but none of it works, or its outdated.
Basically all I want is pageviews for the past 7 days by day.
Any help would be GREATLY appreciated.
Thanks,
I have created a service to do exactly this: EmbeddedAnalytics. Our service uses Google 3rd party authorization protocols so you are not providing us with your credentials. All you need to do is embed a snippet of code into your site where you want the stats to show.

Categories