Jump to content

[TOPIC: topicViewTemplate]
[GLOBAL: userSmallPhoto]
Photo

Facebook v4a Game Request Dialog like candy crush saga send lives
Started by BK PANARA Jun 19 2019 08:24 PM

14 replies to this topic
game request dialog facebook v4a app request
[TOPIC CONTROLS]
[/TOPIC CONTROLS]
[modOptionsDropdown]
[/modOptionsDropdown]
[reputationFilter]
[TOPIC: post.html]
#1

BK PANARA

[GLOBAL: userInfoPane.html]
BK PANARA
  • Enthusiast

  • 65 posts
  • Corona SDK

I want to implement functionality to send app request to user's friends.

I know we can do like this :

facebook.showDialog( "requests", 
                { 
                    message = "You should download this game!",
                    filter = "APP_NON_USERS"
                })

This code will open a facebook popup with list of user who has app not installed.
But to send request we have to select friends one by one on this popup.

I want to open a popup with already some friends selected in this popup like candy crush saga  :
Please see attach image: 

1561004106307.JPEG

Is this possible to open same popup in Corona plugin Facebook V4a ?

Can anyone help me to implement this popup please ?

Thank you.
Bhavin :)

 

Attached Files



[TOPIC: post.html]
#2

BK PANARA

[GLOBAL: userInfoPane.html]
BK PANARA
  • Enthusiast

  • 65 posts
  • Corona SDK

Hi @vlads and @rob,

Any one can help me please ?



[TOPIC: post.html]
#3

Rob Miracle

[GLOBAL: userInfoPane.html]
Rob Miracle
  • Moderator

  • 26,061 posts
  • Enterprise

We can't spend time on this plugin until we finish Android 64-bit.

 

Rob



[TOPIC: post.html]
#4

SGS

[GLOBAL: userInfoPane.html]
SGS
  • Corona Geek

  • 2,120 posts
  • Corona SDK

I believe this has completely been depreciated now by Facebook.



[TOPIC: post.html]
#5

BK PANARA

[GLOBAL: userInfoPane.html]
BK PANARA
  • Enthusiast

  • 65 posts
  • Corona SDK

Hi @rob and @SGS,

Thanks for the info.

@SGS , then why it's still working on Candy Crush Saga :) ?



[TOPIC: post.html]
#6

troylyndon

[GLOBAL: userInfoPane.html]
troylyndon
  • Contributor

  • 617 posts
  • Corona SDK

@Rob and @SGS, I have the same question about CCS (Candy Crush Saga). How is it that a freshly updated version of Candy Crush Saga (2 weeks ago) includes this feature as shown by BK PANARA above? We MUST compete with CCS, but how can we do so if the Facebook Plugin does not support this functionality?



[TOPIC: post.html]
#7

SGS

[GLOBAL: userInfoPane.html]
SGS
  • Corona Geek

  • 2,120 posts
  • Corona SDK

Invitable Friends API

 

The Invitable Friends API is no longer usable with game requests. It now returns empty data and will be deprecated in the near future.

 

https://developers.facebook.com/docs/games/services/gamerequests/#invitablefriends



[TOPIC: post.html]
#8

troylyndon

[GLOBAL: userInfoPane.html]
troylyndon
  • Contributor

  • 617 posts
  • Corona SDK

@SGS, thank you. Maybe this is a dumb question, so please forgive me. Can we implement this through the Corona facebook4a plugin?



[TOPIC: post.html]
#9

troylyndon

[GLOBAL: userInfoPane.html]
troylyndon
  • Contributor

  • 617 posts
  • Corona SDK

@Rob, @SGS and @Vlads, very serious issue - please escalate.

 

Because our last opportunity to update our customers that use Android 8 and below is July 31st, and past this date we will NEVER be able to update or create new apps for Android 8 and lower (think international), we must create FINAL versions of our apps before this deadline in 32-bit to maximize our target audience.

 

As I wrote above, Candy Crush Soda most recently updated their app 2 weeks ago. They are able to directly invite, via the Facebook App, their friends to their game WITHOUT having to add names to the invite list...the FB app automatically populates the invite fields and allows the gamer to send to unlimited friends (albeit 50 at a time) without having to do anything but click a single button.

We want to get this working before the deadline - but how can we using the facebook v4a plugin?



[TOPIC: post.html]
#10

Rob Miracle

[GLOBAL: userInfoPane.html]
Rob Miracle
  • Moderator

  • 26,061 posts
  • Enterprise

Troy, there is no way, we can prioritize Facebook over Android. BTW I believe the latest (3498) version supports Android SDK 28. So we are in good shape there. We just have to catch the few problems with people having build fails for unknown reasons and work to solve UTF8 characters in path names.

 

Have you tried using "apprequests" instead of "requests" for the dialog?

 

Rob



[TOPIC: post.html]
#11

BK PANARA

[GLOBAL: userInfoPane.html]
BK PANARA
  • Enthusiast

  • 65 posts
  • Corona SDK

Have you tried using "apprequests" instead of "requests" for the dialog?

 
@Rob , Yes, i just tried it and same result. we have to select users to send app request.

Thank you.



[TOPIC: post.html]
#12

Rob Miracle

[GLOBAL: userInfoPane.html]
Rob Miracle
  • Moderator

  • 26,061 posts
  • Enterprise

I don't know what King is doing with Candy Crush. But Facebook is clear on what you should do here:

 

https://developers.facebook.com/docs/games/services/gamerequests/

 

If you scroll down to "Dialog Parameters", one of the fields is "to". This is either a single ID/username or invite token, or a comma separated list of the same. Perhaps, they are getting a list of friends and populating the "to" structure.

 

Rob



[TOPIC: post.html]
#13

BK PANARA

[GLOBAL: userInfoPane.html]
BK PANARA
  • Enthusiast

  • 65 posts
  • Corona SDK

Hi @Rob,

Yes, i have seen "to" parameter for show app request dialog.
I also thought that if we pass user id list with comma separated, then we can do like Candy Crush Saga app request popup.

But now question is : can we get user's friends list with their ids ?
I have tried this api : https://developers.facebook.com/docs/graph-api/reference/user/friends/
But i am getting empty table of friends. 

{"data":[]}

Do we need to get "user_frieds" permission to get list ?

And we need to add "user_friends" to login ?

facebook.login({"user_friends"})


[TOPIC: post.html]
#14

SGS

[GLOBAL: userInfoPane.html]
SGS
  • Corona Geek

  • 2,120 posts
  • Corona SDK

user_friends is no longer given out "for free".  You will have to ask Facebook to allow it, case by case, and you will need to jump through hoops to get it.



[TOPIC: post.html]
#15

Rob Miracle

[GLOBAL: userInfoPane.html]
Rob Miracle
  • Moderator

  • 26,061 posts
  • Enterprise

And King has a lot more pull with Facebook than most people will have.

 

Rob




[topic_controls]
[/topic_controls]

Also tagged with one or more of these keywords: game request dialog, facebook v4a, app request