7
votes
Accepted
How to use drupal_add_html_head() to add the same metatag multiple times?
The tags are stored by key, so using a different key for each should do the trick:
$delta = 0;
foreach ($images as $image) {
$element = array(
'#tag' => 'meta',
'#attributes' =&...
5
votes
Accepted
how can I hide ShareThis icons from teasers
Go to content type's manage display section and select Teaser tab on top right. There you can change the display settings of the teaser.
4
votes
How to create Facebook style user notifications?
Approach 1: Menu Badges
Use the Menu Badges module to add such notifications to any menu item and/or menu tab of your choice. Here are some details about it (from its project page):
Provides a method ...
4
votes
How to insert social share buttons in drupal 7 using Bootstrap Social Sharing Buttons?
This module implements networks by harcoding in the module's code. Because it is not much clean way how to implement modules for this use-case and this module is not widely used, I recommend you to ...
3
votes
Accepted
Facebook Friend List Import using fboauth
The code you have there is returning friend's names which could be problematic if any of the user's friends have the same name (names like John Smith and Mohammed Abdul spring to mind).
You should ...
3
votes
Accepted
Posting the main url of drupal site on facebook wall
You have a two part question here.
One, the best way to deal with OG info on your site is with the Metatag module:
The Metatag module allows you to automatically provide structured
metadata, aka ...
3
votes
Facebook login only
Create custom tpl.php file of user registration
Comment the $tabs section or $content
Render facebook login form using form id and render it.
Another method is that use penals create a new page and ...
3
votes
Facebook auto post module not posting to my FB page
Finally found the answer.
In admin/config/services/fbpermissions need to give Publish pages permission for users.
3
votes
How to add the domain to the Link field?
I would do the following:
Implement hook_field_widget_single_element_form_alter(), and add an #element_prefix key in front of the URL field with the domain. This will handle the display.
Create a ...
2
votes
Accepted
Is there any method (function) in drupal which gets called after nodes being created.
You are looking for hook_node_insert()
This is from API page:
Respond to creation of a new node.
This hook is invoked from node_save() after the database query that
will insert the node ...
2
votes
How to add facebook like/share button to every new text I post?
Hope this will help you,
You can achieve this with two module views and facebook
after enabling both module go to the structure tab of drupal,click on this
put Fcaebook application Id here:
You can ...
2
votes
Auto login to LinkedIn
Got something closely related to your case and I won't say this is not possible, you can have some workaround by following these threads:
Login to Drupal using LinkedIn
This feature is not available ...
2
votes
Auto posting to Facebook page
Thanks everyone.
What I was able to do was build a Rule with Form Events that sets the 'Post to Facebook' checkbox (and one for Twitter) if the current page URL matches the node edit URL. This way ...
2
votes
Accepted
Twitter feed on Drupal from multiple accounts
The twitter module allows you to get the tweets from various accounts and display them via views.
So you can have a view for your first 3 users and then another one for the other two and so on...
...
2
votes
Twitter not working on HybridAuth
You should update the HybridAuth library to the latest version
2
votes
How to allow direct user input links the Facebook way?
You are looking for oembed, there is a Drupal module for it as well, that offers integration to media and some other modules.
This module will allow your Drupal site to embed content from
oEmbed-...
2
votes
Accepted
How do I create a rule to run during every cron run?
Rules has a specific "React on event" under system -> "cron maintenance tasks performed". If your using the rules modules, that will trigger your rule on every cron run.
Also, if your building a ...
2
votes
Facebook login only
I'd say there's 2 ways to go about this.
One is to disable those tabs at the Drupal level. This can be done via hook_menu_alter() or for a solution that doesn't need custom code, use the Tab Tamer ...
2
votes
Accepted
How to post the node link in social networking if node is published?
For Facebook and Twitter you should be able to get this to work using the Rules module, though for Google+ this sounds like a business opportunity (read: no known solution as of today). Read on for ...
2
votes
Accepted
Is it possible to post video on Facebook user timeline using Facebook Autopost module?
No. Not without building upon it. While the version of the FB PHP SDK (3.2.3) that the module relies on supports uploading video, there is no support for it in the module.
Looking at the current ...
2
votes
How to install oAuth using PHP 7 and PECL OAuth library?
Well, while I have no final solution, since I humbled over the same issue 2 years later today, I can at least put some more light on it and help with some more tests, etc.
First things first: There ...
1
vote
Accepted
Twitter Module with Formatted tweet
I'm gonna give you an answer that will not sound like good news. The rendering of the Twitter: Formatted tweet field is a bit buggy at times.
As a quick workaround I'd says don't use Twitter: ...
1
vote
Accepted
Re-importing photo from facebook
its better to use Facebook realtime update https://developers.facebook.com/docs/graph-api/real-time-updates/v2.2
create your callback to handle this and register it with real time updates
do the ...
1
vote
Accepted
Tweet a published content on twitter from Drupal 7
Have you created the Twitter app with the correct permissions? By default apps are only created with read-only permissions
1
vote
Top article image not showing when I share content with Facebook or Google Plus
We need to pass the url for the image derivative based on the style we're using.
So - not this:
[my_site]/sites/default/files/my_image.jpg
Rather, this:
[my_site]/sites/default/files/styles/large/...
1
vote
Accepted
Using "Rabbit Hole nodes" and "Facebook Like Button"
Perhaps consider using Page Manager (part of Chaos Tools) to redirect users instead of the Rabbit Hole nodes module.
On the Page Manager admin page (Structure -> Pages) edit the node/%node page
Make ...
1
vote
embedding Facebook Video with oembed
turned out i needed an API key for embedly service from http://embed.ly/. here is a good guide on oembed http://mustardseedmedia.com/podcast/episode54
strange. some images showed up even without an ...
1
vote
Cannot get any tweets using Twitter Block
Have you tried using the twitter profile widget? The twitter profile widget allows you to stream a twitter feed from a specific user.
First you will need to log into twitter and configure a twitter ...
1
vote
Twitter not working on HybridAuth
I just ran into this issue. In your Twitter App settings, make sure you specify the Callback URL. Should be http://YOUR_URL/hybridauth/endpoint
1
vote
Accepted
Twitter not working on HybridAuth
This is how I solved it, I removed the OAuthException class from the OAuth.php file which can be found in sites/all/libraries/hybridauth/hybridauth/Hybrid/thirdparty/OAuth/OAuth.php and twitter login ...
Only top scored, non community-wiki answers of a minimum length are eligible
Related Tags
social-network × 2817 × 106
users × 31
authentication-authorization × 24
nodes × 20
views × 16
theming × 10
rules × 10
meta-tags × 10
javascript × 9
8 × 8
feeds × 8
blocks × 7
6 × 7
media × 5
comments × 5
entities × 4
panels × 4
redirection × 3
notifications × 3
forms × 2
i18n-l10n × 2
navigation × 2
emails × 2
uri × 2