Can't find my app on facebook insights?

混江龙づ霸主 提交于 2019-12-22 18:09:38

问题


I'm running a site using social plugins, so I created a facebook app

then I want to use facebook insight to connect my website and app (ps. I also add app_id or meta in header)

but I can't find the app I create in the connect list

does anyone has a clue what's going on??


回答1:


It appears to be a Facebook caching issue - the UI is simply not refreshing and providing the new app options. However you can still submit the request with the required app id manually. I used firebug to inject my new app id and name into the <select> element, and then submit the form as normal.

e.g: 1) Find the relevant input <select> element:

2) Run this code in the Firebug (or equivalent) console, with the relevant [PLACEHOLDERS] replaced with your app id:

var fbidOptions = $$('select[name="fbid"]')[0];
var newOption = document.createElement('option');
newOption.setAttribute('value','fb:app_id,[PUT APP ID HERE]');
newOption.innerHTML = '[IT DOESNT REALLY MATTER, BUT PUT APP NAME HERE]';
fbidOptions.appendChild(newOption);

3) Select the newly injected option, and submit. The facebook servers will accept the app id as valid, leading me to believe its purely a UI caching issue.



来源:https://stackoverflow.com/questions/15446031/cant-find-my-app-on-facebook-insights

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!