Re: Counter Program Not working

reneshraj
Level 1

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
SanfordWhiteman
Level 10 - Community Moderator

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.

Jo_Pitts1
Level 10 - Community Advisor

Where is your code to increment the FB Counter?

Are you calling FB in 'pro' mode?

 

reneshraj
Level 1

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

OK, and the webhook side?

reneshraj
Level 1

reneshraj_0-1660283789019.png

 

SanfordWhiteman
Level 10 - Community Moderator

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

(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)