Is there a way of putting the facebook social plugins into page template php files?

Go to Facebook developers site For example, the Like Plugin http://developers.facebook.com/docs/reference/plugins/like/ Generate the code. You’ll get the generated code back in 2 blocks. The first is the SDK that must be added once on your page… preferably after the opening <body> tag. Depending on your theme you can paste that directly into header.php. If you … Read more

Open Graph in posts loop page

As far as I know this is not possible the way you’re trying to get it to work. You can specify an image for Facebook to use in the <meta> tag, but that’s about it. One thing you can try is use JavaScript to invoke the Facebook feed dialog. It has a picture parameter: picture … Read more

Facebook share functionality in wordpress loop

The Javascript is outside the loop, so php can never access get_the_title(), get_permalink() and get_the_post_thumbnail() from there. What I’d do is include those somewhere in the loop, for instance: <div class=”entry-content”> <h2 class=”post-title”><?php the_title(); ?></h2> <a class=”share-button” data-title=”<?php the_title(); ?>”></a> </div> Then with jQuery, you can grab them from the HTML generated by the loop. … Read more

Facebook preview Open Graph Object Debugger

Try this: In your functions.php put this function fb_excerpt($text, $excerpt) { if ($excerpt) return $excerpt; $raw_excerpt = $text; $text = strip_shortcodes( $text ); $text = apply_filters(‘the_content’, $text); $text = str_replace(‘]]>’, ‘]]&gt;’, $text); $text = strip_tags($text); $excerpt_length = apply_filters(‘excerpt_length’, 55); $words = preg_split(“/[\n\r\t ]+/”, $text, $excerpt_length + 1, PREG_SPLIT_NO_EMPTY); if (count($words) > $excerpt_length) { array_pop($words); $text … Read more

Facebook / LinkedIn share page – https opengraph issues [closed]

I am having a very similar problem for which you can see detailed info and diagnosis here: http://www.themastfarminn.com/php-prob/ I sent in a support ticket to hosting company and here is what they replied: ||||||||||||||||||||||||||| We recently updated our Mod Security settings for all signature accounts. This will block any requests that do not include the … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)