Facebook plugin and advertisement on Facebook

Hi everyone,

I’ve just developed my first app and I want to buy some visibility on Facebook.

Unfortunally, when I prepare a new campaign a warning tells me that my facebook SDK doesnt’ work properly.

Do you know how to configure a facebook acount to reach this purpose?

I’ve already implement the facebbok plugin-v.4 on my app.

Off -topic:

Is there a way to randomize the index of a spritesheet to show a random image using a timer?

Thanks in advice =)

There is an API in the Facebook SDK called facebook.publishInstall(). You just need to call that to register your app for Facebook being able to track your app with regards to advertising. The rest of the plugin is about using Facebook. If they tell you that you are misconfigured, they should tell you what’s wrong.

It’s really to help if we can’t see the messages you’re seeing or if you’re not looking in your device’s console log for more information about the problem. It might help to read: 

https://docs.coronalabs.com/guide/basics/debugging/index.html

Rob

Hi Rob, thanks for your answer =)

I’ve just modified my main and inserted that two lines of code:

local facebook = require( “plugin.facebook.v4”)

facebook.publishInstall(“myAppID”)

I’ve published my app, but still got the same error. Here it is:

Y5qXP6.png

Waiting for an answer, thanks in advance =)

You don’t need to pass anything to publishInstall() but it should ignore anything you’re passing. Look in your device’s console log to see if there are any errors.

Rob

Hi Rob, I’ve just write facebook.publishInstall() in my main.lua.

Is this enough to get facebook sdk working?

I’ve checked out my device’s console log and have no errors.

I’ve just published another version of my game but still doesn’t work =/

Maybe I should configure something else in my Facebook account…

Really need your help.

Thanks for your patience =)

It’s likely something that needs configured in your Facebook account. However, that’s not something I have any experience in. I would suggest turning to Google, StackOverflow or Facebook’s developer forums for advice. If you want you can post some screen shots from facebook and perhaps I could suggest a few things, but you’re better off going to the source.

Rob