LinkedIn claims to have updated their share button to a new appearance with a flatter style similar to facebook's. However, despite using their publisher code generator the appearance has not updated on my site.
<script type="text/javascript" src="http://platform.linkedin.com/in.js">
</script><script type="in/share" data-url="https://myurlhere.com" data-counter="right" data-showzero="right" ></script>
Anyone has any idea what I am missing?
The appearance of the share buttons will updates automatically after a few days.
There is nothing extra that the site administrators need to do other than follow the developer instructions at https://developer.linkedin.com/plugins/share
Related
I want to find a way to track fb marketplace searches. I have tried using distill.io successfully on other sites but it fails with facebook.
I posed the question to distill support who told me facebook marketplace updates regularly and autogenerated selectors wont work and would have to hand coded.
I have tried looking at this but am not versed in css and cant see how I can go about manually doing this.
Is there another app or method for me to monitor the marketplace otherwise?
Thanks
Facebook will only refresh the marketplace page and filter by most recently posted if you change things like max and min price. This code opens random facebook links with carious prices for my desired price range category.
This only works if you add the numer that you have on your url when you sign in to market place. For example use:
'https://www.facebook.com/marketplace/xxxxxxxxxxxxxxx/vehicles?maxPrice=10000&sortBy=creation_time_descend&exact=false'
Then change the max and min prices in the url to random numbers near you desired range. You will need to manually refresh by clicking this button every few minutes.
My problem now is getting alerts through distill.io using a method like this that generates random links. Does anyone know how I could set up alerts based on the change in text for the most recently posted items?
<!DOCTYPE html>
<html>
<body>
<h1>Facebook Refresh</h1>
<p>Click the button to trigger random price change to allow facebook to refresh newest links</p>
<button onclick="randomSite()">Click me</button>
<p id="demo"></p>
<script>
var sites = [
'https://www.facebook.com/marketplace/vehicles?minPrice=100&maxPrice=9000&sortBy=creation_time_descend&exact=false',
'https://www.facebook.com/marketplace/vehicles?minPrice=200&maxPrice=8500&sortBy=creation_time_descend&exact=false',
'https://www.facebook.com/marketplace/vehicles?minPrice=200&maxPrice=8501&sortBy=creation_time_descend&exact=false',
'https://www.facebook.com/marketplace/vehicles?minPrice=240&maxPrice=8300&sortBy=creation_time_descend&exact=false',
'https://www.facebook.com/marketplace/vehicles?minPrice=203&maxPrice=9211&sortBy=creation_time_descend&exact=false',
'https://www.facebook.com/marketplace/vehicles?minPrice=204&maxPrice=8600&sortBy=creation_time_descend&exact=false',
'https://www.facebook.com/marketplace/vehicles?minPrice=1065&maxPrice=9000&sortBy=creation_time_descend&exact=false',
'https://www.facebook.com/marketplace/vehicles?minPrice=260&maxPrice=8500&sortBy=creation_time_descend&exact=false',
];
function randomSite() {
var i = parseInt(Math.random() * sites.length);
location.href = sites[i];
}
</script>
</body>
</html>
For my selfhosted Wordpress blog, i wish to add Feedburner email subscription form.
Embed code from feedburner site:
<form action="http://feedburner.google.com/fb/a/mailverify" method="post" target="popupwindow" onsubmit="window.open('http://feedburner.google.com/fb/a/mailverify?uri=[BLOGNAME]', 'popupwindow', 'scrollbars=yes,width=550,height=520');return true">
My issue is, i dont want the popup window to show up. That thing is so 80's stuff.
Instead, is it possible to show the popup contents inline? Using JS or PHP or something?
Check out how div contents change over click here using JS: http://www.willmaster.com/library/web-development/replace-div-content.php
Would be great if something similar could be worked out.
I guess this is easy to do but i have limited knowledge on web designs and php/js/forms.
Thanks in advance.
PS: Please do not suggest plugins. I hate installing plugins unless absolutely necessary.
You can change target="popupwindow" to target="_self" or target="_blank", it can load in current page or go to a new page.
Till yesterday everything was working fine.
In my website's head there was
<script src="http://static.ak.fbcdn.net/connect.php/js/FB.Share" type="text/javascript"></script>
and links like
<a name="fb_share" share_url="http://mysite.com/url"></a>
were transformed to facebook share plugins.
But now there is a problem - i can't see count of shares in plugin. I sniffed requests a little and the error is:
fb_sharepro_render({"error_code":104,"error_msg":"Requires valid signature","request_args":[{"key":"v","value":"1.0"}
I did not change anything on website and problem still occurs. Any hints?
Edit (probably an answer):
This bug is described here: http://bugs.developers.facebook.net/show_bug.cgi?id=19471
Facebook team response:
Thanks for the report. We are looking into this.
We recommend to use the like button instead as we are going to deprecate the
share button soon. The like button provides you with the same functionality and
more ...
http://developers.facebook.com/docs/reference/plugins/like/
Also, works solution with request to http://graph.facebook.com/?ids=*.
For example, while issue is not fixed by facebook, you can use a little modified facebook share widget script, it use a graph.facebook.com instead of api.facebook.com/restserver.php.
You have to introduce access_token also as a parameter. Find what facebook says
GET /fql?q=SELECT+uid2+FROM+friend+WHERE+uid1=me()&access_token=...
My application has a homepage where you can download and install the plugins. It also uses site tags to call the same ruleset to show potential users what the app does.
I'd like to hide the plugins and replace that div with one that says 'Thanks for installing the plugin.' How can I tell the difference between KRL called from the site tags and KRL called from the plugin?
Here's my ideas, but perhaps there is a better way?
Option 1: Use page parameter, maybe the plugin won't see it.
Option 2: Use a second ruleset that calls into my primary ruleset. The plugin ruleset will hide the plugin div and unhide the 'thank you' div. I just have to have the primary ruleset support explicit events.
I think your best option is to use a page parameter, as you said. This will only be sent to the ruleset from your site tags--not from the browser extension--so that should solve your problem. Your site tags will look something like this:
<script type="text/javascript">
var KOBJ_config = {
"rids" : ["a999x99"]
"called_from_site_tags" : "true"
};
</script>
<script type="text/javascript" src="http://init.kobj.net/js/shared/kobj-static.js">
</script>
Then in your app you just have to check the page:param and do whatever you want with it:
is_site_tags = page:param("called_from_site_tags");
See here in the docs for more information. Hope that helps!
According to the Facebook developer roadmap, it will soon be possible to put iframes inside page tabs but it's not yet available. I came across this Store Locator on Coach page which uses an iframe to display a Google map inside a tab :
http://www.facebook.com/Coach?v=app_168904438199&ref=ts
Looking at the source code, I see the map really is inside an iframe. How is this possible?
in STATIC FBML pages you CAN'T USE IFRAMES - no matter what FBML code you put in there, facebook have specifically made the code not work in in business page/tab static fbml pages - my guess is so they can prevent people setting up Amazon stores or other content that uses IFrame (spammers and spyware often use iframes) - the updates are in their 2010 wiki - so it's probabley also a security thing.
I frames can still be used on developers canvas pages apparently but the customer has to click on an image for it to activate rather than the iframe automatically loading - again this is probably a security issue to prevent driveby downloads - where zwinky and similar toolbars are forced onto people computers in the background via iframes without their knowledge.
However some say it does work although you need a user to click on it before it works. if you can live with that then go for it.
<a onClick="outside_location.setInnerFBML(location_two);" style="cursor: pointer;"><center>→our website</center></a><div id="outside_location"> <fb:iframe width="730" height="400" frameborder="0" src="http://www.fborder.com/" /> </div>
<fb:js-string var="location_two"> <fb:iframe width="730" height="600" frameborder='0' src='http://www.fborder.com/' /> </fb:js-string> <script type="text/javascript" charset="utf-8"> var outside_location = document.getElementById('outside_location'); </script>
check out this post. people have got it to work. and some say it wont work for the obvious reasons. such as security and so on. but give it a go regardless.
http://www.facebook.com/topic.php?uid=4949752878&topic=7081
PK