It is possible to test "Like" button on localhost?
相关问题
- facebook error invalid key hash for some devices
- LoginActivty with Firebase & Facebook authenticati
- facebook “could not retrieve data from URL”
- Get access to Angular service instance from JavaSc
- Port of the Rails app when running Cucumber tests
相关文章
- Web Test recorder does not allow me to record a te
- Facebook login for group members
- Factory_girl has_one relation with validates_prese
- What is the difference between `assert_frame_equal
- The method FB.api will stop working when called fr
- How do I send cookies with request when testing Fl
- React native deep linking vs Facebook SDK conflct
- Unit test Angular 2 service subject
Dave's answer is correct, however, I just discovered a workaround: You can make your local machine accessible by using http://localtunnel.me . You'll need to (temporarily) change some URLs used in your app code / html so links point to the temporary domain, but at least facebook can reach your machine.
It is possible to perform limited testing on the facebook like button on localhost. It renders properly on my machine. The trick is using a live, non-localhost URL on the
data-href
attribute (I used Google in the sample below):Not really; facebook has to crawl your site to pull in the title, description, and thumbnail. It can't get to your site if it's on localhost.
If you're developing the likebutton for www.xyz.com, just add in your hosts file:
127.0.0.1 www.xyz.com
Hooray, no more 500s.