I've been working on an instant game for Facebook. All I want is to send a notification that invites the user to play again. I've been checking out documentation for it but it is very unclear on that matter.
I am already using the SDK for instant games and got it running, but I have no idea on how to use the graph API to only send a notification. I don't know in which file I have to put the code for it, nor where to reference it in the index.
you need to add a messenger bot to be able to message users.
check this is the bot docs
[1]: https://developers.facebook.com/docs/games/instant-games/getting-started/bot-setup/
Related
Is there a way in which I can retrieve the links to all the social medias and other accounts a person has connected to their discord account?
I searched the docs to no avail and tried looking in the user object but I found nothing. I assume there must be some way in which I can retrieve this information?
As far as I know it's not possible with just the code of the bot. To get the connections, you must bring the user to authorize your application Oauth. Its like adding a bot to a server, but instead of doing this the user authenticates the bot to get some information about the user.
I am new to JavaScript. I am making a discord bot that gets game statistics from the steam API. I use the npm package steam-api and discord.js-commando. I can't figure out a way how to check to see if a steam user has a game.
Whenever you input a steamID64 that has their games private or doesn't have the game it will print this in the terminal:
"D:\Discord Bots\statbot\node_modules\q\q.js:155
throw e;"
I have been trying to solve this for a week and a half. I could not find anything to solve this.
Thank you for your time.
The Steam API has an API call that allows you to get owned games for a user:
However, a Steam usrer can make their game list private if they so wish. If it is necessary to use your software you could get an application ID of your own and then ask the user to allow your application to make the call using an OpenID library.
I'm developing a userscript in which I want to place a "ban member" button next to every post on a group's timeline. I've already coded a way to get post author's UID and place the button, but how to ban a member from a group? Is there any way to do so? Graph API is not working for me in this case.
Facebook API doesn't let you ban users via their API - basically your only option is writing a script that opens a browser and does that for you. You can do it with something headless, like PhantomJS.
I'm working in a Ionic App to report potholes in the city. The user can make reports through the App or the Webpage, then other users can comment this issue and receive notifications about this specific topic.
I read the documentation for Parse.com of how to send push notifications for specific channels, for example, each report is a different channel. So if I comment in the report 123214 so automatically I will subscribe to this channel in Parse.com and receive notifications. Already know how to do this.
But Is there any way of create these channels in the same time that I generate the report in the App using javascript and REST API request ?
best regards
On my webpage I need to check if given user is available on Cisco Jabber Client. I have both number and user name.
I am already able to send chat messages and start voice conversations, but it would be nice to check if user is online, and for example show cool icon or something.
Is there a simple way to do that in JavaScript/jQuery?
Or is it possible to check it by server side of web application (Spring/Java) and use AJAX?
The service can be accessed using the REST Api's. Below URL can provide some information on this.
https://developer.cisco.com/site/collaboration/call-control/unified-presence/overview/presence-web-service/index.gsp
Honestly, I haven't tried this.