trying to pull the number of likes from a facebook fanpage using JSONP and JQuery

前端 未结 2 896
暖寄归人
暖寄归人 2021-01-07 11:07

So I\'m trying to pull and print just the number of \"likes\" a certain fanpage has, after doing some research - I found that this should work, but its not pulling anything.

2条回答
  •  再見小時候
    2021-01-07 11:39

    I get a javascript error in the console. Try to run the function on jquery document ready instead of body onLoad. Also, likes is not defined, it should be json.likes.

    
    
    
    
        

    Loading...

提交回复
热议问题