GRiMe2D / facebook-actionscript-api

Automatically exported from code.google.com/p/facebook-actionscript-api
0 stars 0 forks source link

FacebookMobile - How can I do a multi-friend Invite? #365

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
Am developing an AIR mobile application. I could generate a facebook friends 
list using the examples and APIs provided for the FacebookMobile. Now I cannot 
find any examples or APIs for making an Application Request for the selected 
users. 

I can see only examples using ExternalInterface (Facebook.ui). Have anyone done 
this already? Or is it not really possible with the current version? 

Looking forward for a solution. Thanks in advance.

-manu

Original issue reported on code.google.com by manu.dre...@gmail.com on 3 Oct 2011 at 5:38

GoogleCodeExporter commented 9 years ago
Currently, its not possible with the Desktop/Mobile api. Facebook doesn't allow 
you to send app requests via just the Graph api, so the javascript sdk is 
required to do so. 

Original comment by edwar...@gmail.com on 26 Oct 2011 at 8:27

GoogleCodeExporter commented 9 years ago
That is entirely false, as we are doing it in our AIR application. I am using 
this API but I wrote our own FacebookMobile.dialog() method to support it. The 
me/friends endpoint is accessible via the graph API as described here: 
http://developers.facebook.com/docs/reference/api/user/

Original comment by bmj...@gmail.com on 15 Nov 2011 at 6:23

GoogleCodeExporter commented 9 years ago
Additionally, the me/apprequests endpoint is also accessible via the Graph API.

Original comment by bmj...@gmail.com on 15 Nov 2011 at 6:25

GoogleCodeExporter commented 9 years ago
bmj, how can you send app requests via the Graph API to people who haven't 
authorized your application?

Also, what does your FacebookMobile.dialog() contains?

Regards,
Ciprian

Original comment by caba.ciprian on 12 Dec 2011 at 7:37

GoogleCodeExporter commented 9 years ago
You can make apprequests via the graph API using the endpoint 
http://www.facebook.com/dialog/apprequest. I've committed to 
https://github.com/thegoldenmule/FacebookMobile-actionscript-api if you'd like 
to take a look at what I hacked in. I basically copied the crap login was doing 
and had to make a few changes since this API was apparently written by monkeys.

Original comment by bmj...@gmail.com on 12 Dec 2011 at 11:48

GoogleCodeExporter commented 9 years ago
Man, you rock :)

This is very cool, even if it's a hack.. I think these changes should be added 
to the official actionscript api

Thanks.. this is really great

Original comment by caba.ciprian on 13 Dec 2011 at 3:59

GoogleCodeExporter commented 9 years ago
The only problem is that I need to login twice.. I am already logged in for my 
application, but whenever I make the first FacebookMobile.dialog call, I need 
to login again. This only happens on my mobile, but not when testing from 
desktop.

Any idea why?

Original comment by caba.ciprian on 13 Dec 2011 at 4:08

GoogleCodeExporter commented 9 years ago
Really? Interesting. I have not had that problem. I can look into it later, but 
not right now :/

Original comment by bmj...@gmail.com on 13 Dec 2011 at 4:28

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
I can confirm almost two years that what bmj...@gmail.com said works perfectly 
fine under AIR SDK 3.7 beta.

@bmj...@gmail.com Thanks a lot for saving my life!

Original comment by kamilwah...@icloud.com on 1 Jul 2013 at 2:19

GoogleCodeExporter commented 9 years ago
Bmj, I have implemented your code, it's nice. I am able to send and get success 
response but it's not posted to my friend. Also I would like to know if I can 
post on my friends wall.

Thanks in advance.

Original comment by neopava...@gmail.com on 25 Mar 2014 at 6:24

GoogleCodeExporter commented 9 years ago
You should read the open graph API thoroughly, I'm pretty positive those should 
be supported with the library. Also, I haven't touched this thing in years so I 
will not be able to offer support. Sorry!

Original comment by bjor...@kixeye.com on 25 Mar 2014 at 6:32

GoogleCodeExporter commented 9 years ago
While using this ack i ot this error (((

ReferenceError: Can't find variable: console
 at https://fbstatic-a.akamaihd.net/rsrc.php/v2/yg/r/5obW8wVceii.js : 100
x at https://fbstatic-a.akamaihd.net/rsrc.php/v2/yg/r/5obW8wVceii.js : 100
TypeError: Result of expression 'bigPipe' [undefined] is not an object.
TypeError: Result of expression 'bigPipe' [undefined] is not an object.
TypeError: Result of expression 'bigPipe' [undefined] is not an object.
TypeError: Result of expression 'bigPipe' [undefined] is not an object.
TypeError: Result of expression 'bigPipe' [undefined] is not an object.

Original comment by archi.kh...@gmail.com on 3 Jul 2014 at 7:27