How to let user select role upon registration in Facebook-AWD?

The plugin offers an entry point for this manipulation: $userdata = apply_filters(‘AWD_facebook_register_userdata’, $userdata); So, now it’s a matter of you filling up the fictional function in this example: add_filter( ‘AWD_facebook_register_userdata’, ‘user_role_wpse_87863’, 10, 1 ); function user_role_wpse_87863 ( $userdata ) { $userdata[‘role’] = your_way_of_getting_the_role(); return $userdata; } Related: About Hooks and Filters Actions and filters are … Read more

Is there a way to share your Facebook Page’s stream on a WordPress page or post?

The solution is simple, you need your FB page RSS feed. To have it you can modify this simple URL: https://www.facebook.com/feeds/page.php?id=136027779805212&format=rss20 As you can see the number after ‘id=’ and before ‘&format’ is the page ID. If you don’t know how to find your page ID use this simple online service: http://findmyfacebookid.com/ Then with any … Read more

Add custom Facebook share link with share count and variable text

I found a simple solution thanks to this answer: How do I change the singular/plural on “comment” to “comments” on Facebook’s number of comments? Here is how I solved without the tag, using the code I was already working for, this goes into function.php function get_likes($url) { $json_string = file_get_contents(‘http://graph.facebook.com/?ids=” . $url); $json = json_decode($json_string, … Read more

Custom Facebook share button with custom title,url,image in wordpress

After here and there for long i find the solution for above : Replaced above meta tag with below <?php if ( have_posts() ) while ( have_posts() ) : the_post(); ?> <?php $image = wp_get_attachment_image_src( get_post_thumbnail_id( $post->ID ), ‘single-post-thumbnail’ ); ?> <?php if($image[0] != “” ){ ?> <meta property=”og:image” content=”<?php echo $image[0]; ?>” > <?php … Read more

API Hook for After Commenting (for sharing on Facebook)

Have you tried comment_post action? It’s fired right after the comment is inserted into the database. function share_comment_on_facebook( $comment_ID ) { $commentdata = get_comment( $comment_ID ); if ( $commentdata[‘comment_approved’] ) { // fire up the code to launch pop up } } add_action( ‘comment_post’, ‘share_comment_on_facebook’ );

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