ludei / Construct-2-plugin

http://www.ludei.com
41 stars 35 forks source link

Missing Facebook Actions #33

Open TheWyrm opened 10 years ago

TheWyrm commented 10 years ago

At present there is no way to use the Facebook plugin with CJS. This is important for small developers as a vital part of marketing.

Things needed at minimum are: Request login (asking for publishing permissions) Has logged in - So we know the login was completed. Request logout Has logged out - So we know the log out was completed. *Post to wall

LibelulaV commented 10 years ago

Hello,

With the last commit, you should be able to do all you mentioned in the previous list except the publishing actions, as they are not implemented in any of the social services.

I have just updated the screenshots and I will update the provided .capx right now.

Cheers.

TheWyrm commented 10 years ago

I tried opening the capx but got the following error -> http://i58.tinypic.com/23t2p80.png

LibelulaV commented 10 years ago

Hello,

Yes, you are right. I fixed it and I added a new method (the native share). I included it in the .capx, in the General section . Once we update the Plugin to use the 3.0.0 version , I will add more methods.

Cheers.

TheWyrm commented 10 years ago

Hi, I can confirm the capx actually opens now.

TheWyrm commented 10 years ago

So I can confirm that the Facebook functionality is working in the launcher apart from share (but that maybe a misunderstanding).

Login. Logout. Leaderboards (Not sure if this is a Ludei leaderboard using facebook ids or a Facebook leaderboard?) Achievements. (Again not sure if this is a Ludei achievement system using facebook ids or a Facebook achievement system?) Share - The action requires you to provide a text string. Then when called it pops up the devices share dialog to which you pick an application. I picked the facebook app on my android phone but it didn't add the text to share dialog. So not really sure how it works?

If you can clarify my queries above that would be great.

Kind regards, Wyrm

TheWyrm commented 10 years ago

Also what is the 'Facebook channel' option?

LibelulaV commented 10 years ago

Hello,

Everything is working on the Launcher. Both Leaderboards and Achievements are specific for Facebook/Game Center/Google Play Games, because you can pick the Social Service you prefer in the configuration. The Share is not related to Facebook, it is the native share from the device. That is why you don't need to make any login and it is placed in the General section of the capx. When you share an URL from Facebook to, for example, Skype or Hangouts, you are using this method. The "Facebook Channel" is something that is required from Facebook part. It is used for loading and initializing Facebook JS SDK and, what is more important, it determines the language of Facebook JS SDK. You can have a look at Facebook documentation here: https://developers.facebook.com/docs/javascript/quickstart/v2.1 The channel in this example is expressed in this line:

js.src = "//connect.facebook.net/en_US/sdk.js"

When using Construct2, paste what it is between the " " in the field and it will be enough. This one is in English.

Regards.

TheWyrm commented 10 years ago

Ok, thanks for the information. I'll close this issue when there is a post to wall option. If it helps I think calimaborges got his extension working for 2.0. So you could just copy the relevant bits from his github -> https://github.com/calimaborges/construct2-cocoonjs-extended-plugin

LibelulaV commented 10 years ago

Hello,

As I told you before, I don't think we add anything else until we adapt the Plugin to the 3.0.0 version of the JS Plugins: http://doc.ludei.com/3.0.0/ (which is different from the Could Compiler version). About the link, I will have a look at it, thanks for the information. However, adapting the Plugin means a lot of refactoring, so I am not sure if I can take part of it or not.

Thanks anyway.

TheWyrm commented 10 years ago

Sure, I understand that you wont do any further additional changes until 3.0.0 and that the github repository I refereed you to may not just be a copy and paste job. ;) I simple meant after 3.0.0 is released and you do more work on the plugin which includes the wall post feature I will mark this issue as closed. The repository I referred was just added in case it helped you in 'any' way. Which may or may not help.

Thanks for your hard work so far. It has not gone unnoticed.

TheWyrm commented 10 years ago

Can you add post to wall now please? Then I can close this issue.