share

facebook share button with custom title, description, and image [duplicate]

两盒软妹~` 提交于 2019-12-03 05:50:57
This question already has answers here : How does Facebook Sharer select Images and other metadata when sharing my URL? (12 answers) Possible Duplicate: How does Facebook Sharer select Images? It looks like that the Facebook support custom title, description, and thumbnail in several ways. So far, I have found two solutions. using meta tag [meta name="title" content="title" /] [meta name="description" content="description" /] using URL parameters. [a href='http://www.facebook.com/sharer.php?s=100&p[title]=WEB1CHANNEL&p[summary]=Web+Design+Company+in+Dubai.&p[url]=http://www.webchannel.ae&p

How to successfully implement og:image for the LinkedIn

会有一股神秘感。 提交于 2019-12-03 05:28:14
问题 THE PROBLEM: I am trying, without much success, to implement open graph image on site: http://www.guarenty-group.com/cz/ The homepage is completeply bypassing the og:image tag, where internal pages are reading all images from the site and place og:image as the last option. Other social networks are working fine on both internal pages and homepage. THE CONFIGURATION: I have no share buttons or alike, all I want is to be able to share the link via my profile. The image is well over 300x300px:

Using NSNetService class to make an SMB tcp ip connection to a folder shared on windows machine

一笑奈何 提交于 2019-12-03 05:06:21
I have been trying to figure out a way to access my windows shared folder using iPhone. The desired functionality is part of bigger enterprise app I am building. Here is someone who has already asked a similar question but no luck - Does iOS support file operations via SMB? Now, I have found apple developer tutorial called " SimpleNetworkStreams " which employs NSNetService to use x-SNSUpload protocol over tcp by setting type of NSNetService instance to protocol x-SNSUpload._tcp Here is how they have done it - self.netService = [[[NSNetService alloc] initWithDomain:@"local." type:@"_x

Get the list of apps capable of handling the SEND intent to display in a View (not a popup dialog)

本小妞迷上赌 提交于 2019-12-03 04:44:36
问题 I'm trying to get the list of all apps installed on a phone capable of handling the SEND intent. I am currently handling this situation by using Intent.createChooser but this is not what I am trying to achieve as I would like to be able to get access to the list of apps to display them in a View in my activity, in a way similar to how the Android stock Gallery app displays them and NOT in a spinner dialog. Screenshot available here: http://i.stack.imgur.com/0dQmo.jpg Any help would be greatly

Releasing Windows file share locks

时间秒杀一切 提交于 2019-12-03 04:18:51
This problem crops up every now and then at work. Our build machine can have it's files accessed via a normal windows file share. If someone browses a folder remotely on the machine, and leaves the window open overnight, then the build fails (as it has done now). The explorer window left opened points at one of the sub folders in the source tree. The build deletes the source, and does a clean checkout before building. The delete is failing. Right now, I'd like to get the build to work. I'm logged in from home, and I'd rather not reboot the build machine. I'm unable to get hold of the person

How do you include hashtags within Twitter share link text?

末鹿安然 提交于 2019-12-03 04:10:12
问题 I'm writing a site with a custom tweet button that uses the www.twitter.com/share function, however the problem I am having is including hash '#' characters within the tweet text. For example: http://www.twitter.com/share?url=www.example.com&text=I+am+eating+#branstonpickel+right+now The tweet text comes out as ' I am eating ' and omits the hash and everything after. I had a quick look on the Twitter forums and learnt the hash '#' character cannot be part of the share url. On https://dev

Mime type for .txt files?

三世轮回 提交于 2019-12-03 04:09:18
I´m trying to share a .txt file with share intent. If I set "text/plain" as mime type, it reads the content like text not like text file, then the options given in the share menu are Whatsapp, Line, etc.. Does anybody know how to configure the share intent so that the share options are only the programs that are able to send a .txt file (Gmail, Dropbox, etc.. but not Whatsapp..)? Thanks You can try the specific mime: text/plain or, the more general text mime: text/* tony gil simple and complete example code (less than 50 lines) for app that android will present to the user along with menu list

Android add my app to “Share” button in gallery

淺唱寂寞╮ 提交于 2019-12-03 02:49:19
I succeed to add my app in the "share" button in the Android gallery, so if I click on it, my app will start. Can I choose which activity of my app to start? Now it starts the "main" one. Here's my code in the main class: ..... Intent intent = getIntent(); Bundle extras = intent.getExtras(); String action = intent.getAction(); // if this is from the share menu if (Intent.ACTION_SEND.equals(action)) { if (extras.containsKey(Intent.EXTRA_STREAM)) { // Get resource path } } And the manifest: <intent-filter> <action android:name="android.intent.action.SEND" /> <category android:name="android

如何在网页上添加分享按钮

匿名 (未验证) 提交于 2019-12-03 00:38:01
在很多文章页面,我们基本上都会看到分享按钮,如下图: 这样的分享按钮是如何实现的呢,具体可以参考百度分享http://share.baidu.com/code/,只要在网页上添加相关的代码即可,如下: <div class="bdsharebuttonbox"><a href="#" class="bds_more" data-cmd="more"></a><a href="#" class="bds_qzone" data-cmd="qzone" title="分享到QQ空间"></a><a href="#" class="bds_tsina" data-cmd="tsina" title="分享到新浪微博"></a><a href="#" class="bds_tqq" data-cmd="tqq" title="分享到腾讯微博"></a><a href="#" class="bds_renren" data-cmd="renren" title="分享到人人网"></a><a href="#" class="bds_weixin" data-cmd="weixin" title="分享到微信"></a></div> <script>window._bd_share_config={"common":{"bdSnsKey":{},"bdText":"","bdMini":"2"

How to copy a file from a network share to local disk with variables?

谁说胖子不能爱 提交于 2019-12-02 23:42:49
If I use the following line: shutil.copyfile(r"\\mynetworkshare\myfile.txt","C:\TEMP\myfile.txt") everything works fine. However, what I can't seem to figure out is how to use a variable with the network share path, because I need the 'r' (relative?) flag. The end result I would imagine would be something like: source_path = "\\mynetworkshare" dest_path = "C:\TEMP" file_name = "\\myfile.txt" shutil.copyfile(r source_path + file_name,dest_path + file_name) But I have had no luck with different variations of this approach. The r used in your first code example is making the string a "raw" string