Testing Foursquare "Apps Platform" - foursquare

I have registered my app with Foursquare, including registering for "User Push Api"
I have tested the checkin push using their website link "Send a test push" with successful results.
I have worked through Oauth process, and successfully get a token and can make calls with that.
Now I would alike to test the "User Push API" with the actual foursquare app. My understanding is that in order for my app to receive the pushed checkin notifications, my app has to be "Connected" with my Foursquare account.
What do I do to make this connection? I don't see my app listed in the gallery of apps to connect. Are there calls I need to make once I have the token to finalize the connection process? I understand that while this API is under development, that my app cannot appear in the main gallery. It seems that I should be able to connect my app somewhere since I am registered as developer.
Thanks,
Chris

See https://developer.foursquare.com/overview/auth for more details on how to connect with your app.
Additionally, even if your app does not appear in the app gallery, a draft version of your app details appears at https://foursquare.com/app/CLIENT_ID which you can review and will have a connect button automatically generated for you.

Related

How to get a callback when an Azure Marketplace Managed Application is installed from marketplace

The Microsoft documentation states:
Provide a notification endpoint URL: In the Notification Endpoint URL
box, provide an HTTPS Webhook endpoint to receive notifications about
all CRUD operations on managed application instances of this plan
version.
I created a simple Logic App and copied the HTTP endpoint into my MPN App Plan under the
It looks like this and has the sig at the end:
https://prod-08.australiaeast.logic.azure.com:443/workflows/fe287d1b9a8c48619a1b44765dad6dc7/triggers/manual/paths/invoke?api-version=2016-10-01&sp=%2Ftriggers%2Fmanual%2Frun&sv=1.0&sig=C9JYfNPjvq-efsLwW66A4K4zTgx6qxGT1oH0RZZRsI0
To test it I hit it with PostMan and confirm that it is getting an HTTP200 as per the MS Docs.
I publish the app to the marketplace:
(you can see the app live here - https://azuremarketplace.microsoft.com/en-us/marketplace/apps/data-drivenai1581501556049.cloudmonitor-analytics-engine)
However - the endpoint never gets called at all. I can see in the logs that no attempt (failed or past) has been made to call it.
I raised a Microsoft Support Ticket and asked a Technical Specialist, however no one can tell me how to debug it or why it is not calling back on installs or failed installs.
Has anyone seen this working?
Update
I found out that each PLAN has a GUID that is automatically used for deployment. Mine is "pid-34881ea9-xxxx--xxxx-xxxx-2cf731e06ef7-partnercenter" - should I be putting this on the callback notification URL as sig=ThisGUID?
In the example for Managed apps with notifications, it shows that managed applications will send a post to https://{your_endpoint_URI}/resource. Can you try adding /resource to your listener and see if it triggers your logic app? I believe that should fix this.

How to connect a published bot to bot channel registration on Azure

I'm new to Azure. I had published a bot (developed locally) to Azure, e.g. named MyBot. It was shown as web service. Then I had created a bot channel registration on Azure e.g. named MyRegistration. As instructed, I wrote down the AppID and client secrete value from MyRegistration. In My Registration->settings, I put https://MyBot.azurewebsites.net/api/messages to the messaging endpoint. In MyBot->Configureation->Application settings, I added "MicrosoftAppId" and "MicrosoftAppPassword" and their values. I turned on "Web sockets" in MyBot->Configureation->General settings. I saved all the changes.
When I run "Test in Web Chat" in MyRegistration, nothing happened. In MyRegistration->Channels, there was "Issues" saying "There was an error sending this message to your bot: HTTP status code InternalServerError".
Can anybody help to point to what the reasons of failure were? Thank you very much.
Not sure the root reason, but I deployed my bot and go through this process but everything works perfectly for me. This is my steps below:
Deploy my bot service to Azure as a web app.
Create a Bot Channels registration, config my bot-message endpoint and Note Microsoft App ID:
Create a new secret, and note its value by clicking "Manage" Link:
Go to app service, and config App ID and App Password
Back to bot channel and have a web test. everything works as excepted:

Instagram webhook not activating

My goal is to use the Facebook webhooks to get a notification whenever an IG user mentions my IG account. For that I have followed these steps:
I have created a Facebook page and connected it with an Instagram business account.
I have created a Facebook app (which is now live) and added the product "webhooks".
I have connected my app with my page.
I have created a webhook and subscribed to the mentions event.
I have tested the webhook, using the tools provided by Facebook and it works.
The problem I'm facing is that I can't get my app to work with real data. I have tried to mention my business IG account from my IG personal account, but nothing happens. My callback url is not getting called.
My app doesn't need users to login, so I'm not sure if I need to send my app for review. Do I need a special permission?
I had the same problem. For my case, when I installed the app via graph api explorer, the page token I was using didn't have the instagram_manage_insights permission. So I granted that permission, got a new token, re did the POST request to the {page-id}/subscribed_apps again with the new token and that fixed the problem. Just for the record, I used a system user token from the business manager.
Did you verified your Facebook app via app review? If not, you won't get production data via a webhook callback for the Instagram. I had the same issue and asked the Facebook support and got following response:
However, this is not the same for instagram or pages. This is just how the product teams have decided to implement it. For app review, you can show a mock process of the flow, using either the test webhook or your own process. The app review is less about technical implementation steps, but just a way to make sure that your app is going to use the permission in a way that follows our guidelines, so mocking the procedure should be fine. The reviewers understand that you do not receive webhooks in dev mode and should take this into consideration.
For more information check out following links:
Why is the Instagram Graph API webhook not working
https://developers.facebook.com/support/bugs/495933900986533/
I just figure it out of this problem.
There is a mistake in the official Instagram webhook guide:
With Graph API version 3.2, the /{page-id}/subscribed_apps edge now requires the subscribed_fields parameter, which currently does not support Instagram webhooks fields. To get around this, use your app's dashboard to subscribe.
https://developers.facebook.com/docs/instagram-api/guides/webhooks/#install-app
However, the app's dashboard subscribe is another function. You need your page to subscribe to some field to receive webhooks
Just POST /{your-instagram-connected-page-id}/subscribed_apps?subscribed_fields=feed&access_token={your-instagram-connected-page-token}
Then you will receive webhooks in live mode.

Facebook chatbot with node, express.js, ngrok and Dialogflow

I made this bot using express.js, node.js and ngrok. Its automatic answers are working fine, but this is happening only to my user, the user which created its facebook page, if other people message it, it won't respond.
I've already made it public, I have no idea what to do. What do I need to do so the bot respond to all users that message him?
I think its something about the Facebook configuration, because the bot is responding properly. How can I get help on this?
Before a Facebook app goes to live, you have to make sure by the facebook authority, the app is using data in an approved manner.
From your app dashboard, you have to submit the application for review.
Before you can switch your app to Live mode, we may need to make sure
that you will be using our products and data in an approved manner. To
achieve this goal, we require many apps to undergo App Review.
Without reviewing the application only the developers and the page associates can interact with the bot.
Check the docs here.

Can't get Foursquare to push live checkins to my URL using the venue push API

I'm the manager of a venue and I'm trying to get checkins live using the Venue Push API. I have setup two Foursquare apps, one using my personal account and one using venue management account (as far as I understand, these are two seperate accounts because I can switch between them when I'm on foursquare.com).
When I send test push using the push console on the Foursquare developer panel from https://foursquare.com/developers/app/.../push I get a test notification to the URL that I specified, but no matter what, I haven't been able to receive checkins live.
The account is verified and I'm the manager of the venue, yet I still can't get live checkins.
Is there something I'm missing? I would appreciate any help. Thanks.
You (or a venue manager) still needs to authorize your app to send pushes. From the docs:
It's important to stress that in order for your app to see pushes for
a venue, at least one of this venue's managers must have authorized
use of your app, otherwise you may see “Your app can't see pushes from
that venue” errors.
https://developer.foursquare.com/overview/realtime

Resources