How do you customize the text in the lower-left hand corner in the Facebook Feed Dialog, as shown in the attachment? Or is that text part of the icon? If so, then where do you upload the icon in Facebook? Haven't had any luck finding directions.
You just have to use actions parameter in your Feed Dialog code to make such text appear below the icon as you have mentioned. Check out the feed dialog parameters here
You have not mentioned anywhere in the question, which language are you using, but if you are using-
Javascript SDK-
actions: {
name: 'Join dropbox',
link: 'http://url.com'
}
PHP SDK-
'actions' => json_encode( array(
'name' => 'Join dropbox',
'link' => 'http://url.com'
))
Hope that helps! :)
Related
feuser edit page screenshooteScreenshote
Hello, everybody. Can somebody tell me how I can add some list to feuser page on back end? Like it shown on screenshot(list with users). I want to add similar tab with user comments to feuser edit page on back end. So I want to show so user comments. Don't advice other variants please, tell me please how to do it please, if is it possible.
I want to add my table to user edit page, see screenshot, and show rows which relate to this user
TYPO3 7.6.16
You can add any table to Web module page view, via ext_localconf.php
$GLOBALS['TYPO3_CONF_VARS']['EXTCONF']['cms']['db_layout']['addTables']['tx_myext_domain_model_name'] = [
'default' => [
'MENU' => 'LLL:EXT:tx_myext/Resources/Private/Language/locallang_db.xlf:menuDefault',
'fList' => 'title,description,image',
'icon' => TRUE
]
];
Clear cache, and your done. Adapt listed fields (fList) depend on your needs.
I'm using, but not married to, the feed dialog to share to a users wall on facebook.
var obj = {
method: 'feed',
to: shareTarget,
from: shareTarget,
link: 'myLink.html',
picture: 'myPic.jpg',
name: 'auto populated if left blank',
caption:'also auto populated if left blank',
description:'again, also auto populated if left blank'
};
FB.ui(obj, callback);
The feed dialog contains/displays several params which I would prefer not display. However, when I remove the 'description' or 'caption' field from the above code they still appear in the feed dialog, displaying auto-generated copy such as 'apps.facebook.com'.
I've shared items to walls that do not contain these fields but can't figure out how it's done.
For example, this polling app will display only the few fields it needs with no description or caption (https://apps.facebook.com/my-polls/).
Any insight is appreciated.
I had the same issue and I found that putting a space in the description field instead of leaving it blank worked.
I'm trying to customize the appearance of a facebook 'Send' button.
I generate the button using the code provided in the docs, however I don't have a clue of how I could modify the button's image or text ?
Could anyone give me an example? I guess javascript is my only option here?
My code looks like this right now:
<fb:send href="http://www.mywebsite.com/something"></fb:send>
This generates a button that looks like this:
Thanks!
You cannot customise the <fb:send /> button. However, you can achieve the same functionality using FB.ui (http://developers.facebook.com/docs/reference/javascript/FB.ui/). Use the send method, eg.
FB.ui({
method: 'send',
name: 'People Argue Just to Win',
link: 'http://www.nytimes.com/2011/06/15/arts/people-argue-just-to-win-scholars-assert.html',
});
You can always create your own link and style it however you wish, then add the link from this list of all social sharing button links list - this works for sharing to all sorts of social sites.
For Facebook's share link, replace [URL] and [TITLE] with your data using urlencode()in the following code in your link's href:
http://www.facebook.com/share.php?u=[URL]&title=[TITLE]
You're pretty much SOL when it comes to customizing these Facebook buttons. They have intentionally designed their buttons so that you can't change or customize them beyond the limited scope provided by Facebook.
Facebook's send button is in an iframe. If you wait for the iframe to load, you can select its contents with $('iframe').contents(). So replacing the text would look like
$(function(){
$('.fb_iframe_widget iframe').on('load', function(){
$(this).contents().find('.pluginButtonLabel').text('Custom Text');
});
});
A module I am using provides a single paged configuration form. But for my additional configuration purposes, I am attempting to make it multipaged with one additional page for collecting extra configuration data.
I am implementing hook_form_alter and I included the following code:
$form['next'] = array(
'#type' => 'button',
'#value' => t('next'),
'#page callback' => array('custom_ucreate_profile2'),
'#button_type' => 'button',
);
I have also created the custom_ucreate_profile2 menu link. The configuration page at the end of that link works fine. But the problem is when I click on the "next" button, the current page just reloads and do not navigate to custom_ucreate_profile2.
Instead of rolling your own solution, which can be hard to maintain as time goes on, you could try the field_group module. There's even a video showing how to use the multipage features.
I'm just starting drupal and I have a question. I have a main menu but some links/sections have no content yet, and I want to show a pop up window with a 'coming soon' legend when the user clicks it. However the only module that might help does not work with D7 yet and I don't know if there's a way to do it manually.
If it weren't possible, is there a way to have these links without content still appear but have them disabled so users can't click them?
I haven't tested it but this might help you:
drupal_add_js('window.open(url, "name", "height=512, width=512").focus();',
array('type' => 'inline', 'scope' => 'footer', 'weight' => 5));
http://api.drupal.org/api/drupal/includes--common.inc/function/drupal_add_js/7