Facebook Audience Network Interstitials are displayed only one time in my android app.

Hi,

I implemented FB Audience Network in one of my app.

When I click on a button the FB Audience Network Interstitial is displayed and the app switchs to the second view. When I go to the first view and click again on the button the FB Audience Network Interstitial is not displayed again. The Interstitial is displayed again only when I exit the app, start it again and then click on the button. How can I display an interstitial each time I click on this button.

I have the same problem with the banner. The banner is displayed when the game starts and if I dismiss the banner and try to start it again nothing work.

Can some one please help me? I am also ready to pay for a remote support. Thank you.

Patrick

We are going to need more information from you.

What version of Corona SDK are you using?

What platform(s) are you building for?

What platform are you building from?

Are you seeing any errors in your device’s console log?  Need help with that? See: Debugging Guide.

Have you put any print statements in your listener function to print out any errors you’re getting, what events are happening? (Which would also show in your device’s console log?

Rob

Hi Rob, thank you very much for your message.

Yesterday I read the debugging guide and after some tests on my device I found out the reason why the ads were not displayed during the second time I pressed on the AdsDisplayButton.

I read the tutorial from the following page: https://coronalabs.com/blog/2016/01/15/introducing-the-facebook-audience-network-plugin/

and what I did was to call the function below each time some click on AdsDisplayButton.

local function displayFacebookAds()

  fbAudienceNetwork.init( adListener )

end

The “fbAudienceNetwork.load( “interstitial”, interstitialPlacementID )”

function has then been call in the listening function. This work only for the first time.

To fix this problem I decided to do the following:

local function displayFacebookAds()

  fbAudienceNetwork.init( adListener )

  fbAudienceNetwork.load( “interstitial”, interstitialPlacementID )

end

This work for me very good.

My corona version is Build 2016.2949 and the platform is android.

Thank you very much.

Patrick