apprequests

OAuthException: (#2) Failed to create any app request

笑着哭i 提交于 2019-12-04 15:54:06
I am using following code to send request from application to user. Everything was fine, but suddenly it stops to work and I get an error: OAuthException: (#2) Failed to create any app request $config = array(); $config['appId'] = $this->app_id; $config['secret'] = $this->app_secret; $facebook = new Facebook($config); $url = "https://graph.facebook.com/oauth/access_token?client_id={$this->app_id}&client_secret={$this->app_secret}&grant_type=client_credentials"; $token = file_get_contents($url); $request = $facebook->api('/'.$id.'/apprequests', 'POST', array( 'message' => $text, 'access_token'

Notification for facebook app requests not showing up

人走茶凉 提交于 2019-12-04 11:32:49
I created an application for a website and gave it a site url. (The site url is actually not real. It is overridden in my local hostname file for development purposes. Does this matter?). I used the sample code for creating a request dialog to send requests to another facebook account. I used the multi-user interface, without the to: field. When I refresh the page in my other facebook account, I see a red 1 on the world icon for just a split second, but then it disappears and there is no notification to be found. It does this every time I send a request. Is there something wrong with my

Is it possible to customize the apprequest notification message similar to BranchOut?

。_饼干妹妹 提交于 2019-12-04 10:31:11
I've noticed that BranchOut requests have a custom notification message and stand apart from other app requests in my notifications. Is this because BranchOut has a special partnership with Facebook? The documentation states that the "message" value will not be displayed in the notification, so I'm curious how this is being done. No it is not possible even with new_style_apprequest parameter in FB.ui options. This used to work earlier but it has stopped working lately. It was anyways an undocumented feature. This is my guess that you might require special permissions from Facebook to be able

Facebook app request dialog not sending request

跟風遠走 提交于 2019-12-04 06:29:14
We have a website that uses Facebook for login. We have an invite page that displays the user's facebook friends and lets then invite them through facebook: $('.invite_container a').live('click', function() { var link = $(this); FB.ui({method: 'apprequests', message: "Join me on Tailored", to: link.attr("user_id") }, function(data) { console.log(data); }); }); I get the appropriate response back from Facebook, which includes the request ID and the ID's of the users who were invited. No one ever receives the invites, and when I check the request ID in the FB graph, I get returned 'false'. Any

How to Send App request to facebook friends through facebook iOS sdk?

守給你的承諾、 提交于 2019-12-03 13:36:52
问题 I am using facebook sdk for my my iOS facebook application. I want to send app request to multiple users. I am using following method for that purpose. NSArray* actionLinks = [NSArray arrayWithObjects:[NSDictionary dictionaryWithObjectsAndKeys: @"Get Started",@"name",@"http://www.facebook.com/apps/application.php?id=135775646522275/",@"link", nil], nil]; NSString *actionLinksStr = [jsonWriter stringWithObject:actionLinks]; NSMutableDictionary* params = [NSMutableDictionary

How to Send App request to facebook friends through facebook iOS sdk?

不想你离开。 提交于 2019-12-03 04:42:54
I am using facebook sdk for my my iOS facebook application. I want to send app request to multiple users. I am using following method for that purpose. NSArray* actionLinks = [NSArray arrayWithObjects:[NSDictionary dictionaryWithObjectsAndKeys: @"Get Started",@"name",@"http://www.facebook.com/apps/application.php?id=135775646522275/",@"link", nil], nil]; NSString *actionLinksStr = [jsonWriter stringWithObject:actionLinks]; NSMutableDictionary* params = [NSMutableDictionary dictionaryWithObjectsAndKeys: @"Check out this awesome app I am using.",@"message", @"Check this out", @"notification_text

Get apprequests available to user, sent by other users

青春壹個敷衍的年華 提交于 2019-12-02 18:19:24
问题 BUMP: This is not a dead request. I'm still hoping to get a solid answer from someone at Facebook or anyone else. Thanks. Revised Inquiry: I don't know if I'm not asking the right question, or if I'm asking a valid question that no one can answer. New Questions: Can we use FQL or another means to get all of the requests seen at reqs.php? I'm essentially looking for something like this: SELECT request_id, app_id FROM apprequest WHERE recipient_uid = me() Notifications return that data but app

Get apprequests available to user, sent by other users

一个人想着一个人 提交于 2019-12-02 07:36:39
BUMP: This is not a dead request. I'm still hoping to get a solid answer from someone at Facebook or anyone else. Thanks. Revised Inquiry: I don't know if I'm not asking the right question, or if I'm asking a valid question that no one can answer. New Questions: Can we use FQL or another means to get all of the requests seen at reqs.php? I'm essentially looking for something like this: SELECT request_id, app_id FROM apprequest WHERE recipient_uid = me() Notifications return that data but app requests are often batched into a single record with a link identifying some but not all requests. I

Avoiding error 100: invalid parameter (requires valid redirect URI) in application requests dialog

白昼怎懂夜的黑 提交于 2019-12-01 17:40:48
I'm developing a game for Facebook. I need a way for users to invite others to the game. For that, I use the apprequests dialog. I redirect the user to the dialog URL, which I glue together like this: $url = "http://www.facebook.com/dialog/apprequests?app_id=".$id."&message=".urlencode("foobar")."&redirect=".urlencode("http://some.arbitrary.url.com"); (Of course, with not-so-arbitrary arguments, but they still look sane to me.) Upon navigating there, the user is scolded by "API Error Code: 100, API Error Description: Invalid Parameter, Error Message: Requires valid redirect URI.". I googled

Avoiding error 100: invalid parameter (requires valid redirect URI) in application requests dialog

我的梦境 提交于 2019-12-01 17:14:55
问题 I'm developing a game for Facebook. I need a way for users to invite others to the game. For that, I use the apprequests dialog. I redirect the user to the dialog URL, which I glue together like this: $url = "http://www.facebook.com/dialog/apprequests?app_id=".$id."&message=".urlencode("foobar")."&redirect=".urlencode("http://some.arbitrary.url.com"); (Of course, with not-so-arbitrary arguments, but they still look sane to me.) Upon navigating there, the user is scolded by "API Error Code: