Counter Program Not working

reneshraj
Level 1

Counter Program Not working

I have created a program and successfully imported a member. While testing with fbcounter API its showing zero count. please help me (I am also face this error in another program, member count is more than 2800)

 

See attachments

 

reneshraj_1-1660130801270.pngreneshraj_2-1660131098152.png

 

 

reneshraj_0-1660130685911.png

 

7 REPLIES 7
Jo_Pitts1
Level 10 - Community Advisor

Re: Counter Program Not working

Where is your code to increment the FB Counter?

Are you calling FB in 'pro' mode?

 

SanfordWhiteman
Level 10 - Community Moderator

Re: Counter Program Not working

(fyi, you don't need to call FlowBoost in pro authoring mode to update counters, unless you're also checking the count in the same call)

reneshraj
Level 1

Re: Counter Program Not working

This is my landing page code

<script src="https://api.teknkl.com/fbcounter_v1/counter/count/rightsincrisis2022?public-api-key=pub:7dg94imnvki356fb7m4sb8g5&amp;cb=counter_function">
</script>

<script>
function counter_function(current){
var counterMax= 5000;

counter_count = current.count;
var CountMax = counterMax;
var CuValue = current.count;
var PerCount =(100 *CuValue) /CountMax;

jQuery('.progress-bar').css({"width": +PerCount+"%"});
</script>
SanfordWhiteman
Level 10 - Community Moderator

Re: Counter Program Not working

OK, and the webhook side?

reneshraj
Level 1

Re: Counter Program Not working

reneshraj_0-1660283789019.png

 

SanfordWhiteman
Level 10 - Community Moderator

Re: Counter Program Not working

OK, still need to see the payload with the {{my.token}} value replaced to know it’s hitting the same counter.

 

Can you show the details of a Call Webhook activity?

SanfordWhiteman
Level 10 - Community Moderator

Re: Counter Program Not working

Like Jo says, we need to see the FlowBoost Webhook definition, and also need to ensure you're updating the exact same counter that you're checking in that Postman call.