Sending Facebook apprequests without dialog - facebook

As it is possible to post on users wall without the request dialog using FB.api('Id/feed...), is it possible to send users an apprequests through the FB.api? and not FB.ui(apprequests...).
Thank you for your answer. I really need help on this I have been looking around for weeks...

You can send apprequests from user to user and app to user.
The apprequests from user to user are initiated with the Requests dialog box
App to User Requests can be used to re-engage a user in your app and can only be sent to users that have installed the app. For example, notifying a user that something has changed since their last visit, "10 of your friends are now online".
You can post a apprequest for a user by issuing an HTTP POST request to /USER_ID/apprequests with the app's access_token.

It is currently not possible to send *apprequest*s without the dialog.

Related

Facebook apprequest (notification) is it possible? [duplicate]

As it is possible to post on users wall without the request dialog using FB.api('Id/feed...), is it possible to send users an apprequests through the FB.api? and not FB.ui(apprequests...).
Thank you for your answer. I really need help on this I have been looking around for weeks...
You can send apprequests from user to user and app to user.
The apprequests from user to user are initiated with the Requests dialog box
App to User Requests can be used to re-engage a user in your app and can only be sent to users that have installed the app. For example, notifying a user that something has changed since their last visit, "10 of your friends are now online".
You can post a apprequest for a user by issuing an HTTP POST request to /USER_ID/apprequests with the app's access_token.
It is currently not possible to send *apprequest*s without the dialog.

Is it possible to post message to facebook when the app is running in background

I'm using facebook API. I want to submit some message to facebook when the app is running in the background. The problem is every time user request or submit a message to facebook, there will show a popup Webview. User need to click it again. So I want to skip this view and submit message in the background . Is this Possible? Can anyone give some suggestions?
Simply request publish_stream permissions from the user and then you can post on the user's behalf at any time, even when the user is not actively using your app (of course this is from a previous user request to have something posted on their behalf). Once you have publish_stream then do an HTTP POST to http://graph.facebook.com/USERID/feed?access_token=AppAccessToken with a message post parameter of the message to be posted to their feed.
As I know, application can not do anything but reciving notifications and presenting pushnotifycations during being in background. The only thing you can - is to ask user "open application rught now to post message to facebook" or something like that.

Facebook application request doesn't send notofication to users

i have a facebook application and i used Facebook Request Dialog https://developers.facebook.com/docs/reference/dialogs/requests/ in order to send requests.
Everything seems fine, except the notification is not actually sent to the user (i tried with 3 users), though the request is practically from a user to another user.
What can be wrong?
Thanks a lot!

Post to Facebook via API but Limit Access to FB App Users

I've got a Facebook app that allows app "requests" to be sent to other Facebook friends. What I would like to be able to do is then allow users to create status updates/posts that will only be visible to the FB App users who they have sent requests to previously.
I'm trying to do all of this via the FB Javascript API. Is this possible?
Sure you can but you'll have to manage the privacy limitation 'manually' by storing all invites in your own database. The apprequests JS SDK call has a callback that contains a request_id and, more relevant to you - the facebook ids of the user who sent the invite and the user that was invited. You'll have to save that information and then use it when posting.
Here is a link to the facebook documentation on apprequests... All the information you need about the callback and using the apprequests feature is located there...

How to know if a user authorize my application on Facebook to send a application request instead of wall post?

I have a Facebook Application that send some contents to users wall that authorized my app, but some users dont have my application authorized(obvious) and i want check if it before send post wall (becuase i get an error) and instead of send a post i want send a application request.
How can check if user already have my app and send an application request?
you can check from signed_request if he/she has authorized your app when he/she start using your app.
otherwise unless user granted offline_access request, you can't check if user already authorized, while he/she is not using app.
the best way for you to have your user logs, then you do action upon your login logs