share

Share anchor links

强颜欢笑 提交于 2019-12-01 07:12:08
问题 I want to make a button that shares links in this form: http://example.com/#anchor but when i click it, it shares only http://example.com How could I make it share what I want? 回答1: Your question is not very detailed and it's not easy to understand exactly what it is you're asking for.. Since the share functionaliy was deprecated I assume that you are talking about the Like button. As you can see in that page you can put what ever url you want into the "URL to Like" field, then click the "Get

How to share image of imageview?

生来就可爱ヽ(ⅴ<●) 提交于 2019-12-01 06:53:30
问题 I have ImageView and I want to share its image. Following is my code, btshare.setOnClickListener(new OnClickListener() { @Override public void onClick(View v) { View content = findViewById(R.id.full_image_view); content.setDrawingCacheEnabled(true); Bitmap bitmap = content.getDrawingCache(); File root = Environment.getExternalStorageDirectory(); File cachePath = new File(root.getAbsolutePath() + "/DCIM/Camera/image.jpg"); try { root.createNewFile(); FileOutputStream ostream = new

Facebook Share Dialog in iOS

好久不见. 提交于 2019-12-01 06:03:50
问题 I am trying to implement the native Share dialog from Facebook in a sample application. Seem to have some problem in doing so. Things I have done so far: Included the latest Facebook SDK Included the AdSupport, Social, Account, Security and libsqlite3.dylib. Added the sample code from Facebook. Added -lsqlite3.0 -ObjC to Other Linker Flags as well Added the app id to the plist Added the FBUserSettingsViewResources bundle and FacebookSDKResources.bundle to the project But I can't seem to share

MANY FACEBOOK SHARE buttons in the same page?

送分小仙女□ 提交于 2019-12-01 05:15:04
问题 I implemented the facebook share button in my page using javascript, like this: <script type="text/javascript"> $(document).ready(function(){ $('#share_button').click(function(e){ e.preventDefault(); FB.ui( { method: 'feed', name: "{{ user_name }}'s FOF", link: "https://www.example.com/uploader/{{current_fof}}/share_fof/", picture: imgsArray[0].src, caption: window.location.href, description: 'This FOF was taken by {{ user_name }}', message: '' }); }); }); </script> <div class="share"> <img

dismiss share extension custom viewcontroller

我的未来我决定 提交于 2019-12-01 04:26:31
I am trying to create a custom view controller to be used with a share extension. Everything works, but I don't know how to dismiss the custom view controller. Basically I launch my share extension from safari and want to completely dismiss this and return back to the safari view. I know this should not be hard, but I am new to share extensions. Below is my base code. Thanks. Bob // // ShareViewController.swift // ShareExtension import UIKit import Social import MobileCoreServices class ShareViewController: UIViewController { private var url: NSURL? @IBAction func backButton(_ sender: Any) {

iOS Share Extension crashes when sharing from iOS 11 Screenshot

╄→гoц情女王★ 提交于 2019-12-01 03:42:09
I'm working on an iOS app that uses a photo share extension, where the image is processed and our main function is triggered. In the simulator on the Photo's app, this works great. I decided to run on the device from the Photo's app and it also works great, but when I screenshot and try to share from iOS 11's new "Quick screenshot" the extension crashes, any ideas? The extension takes an image, sends it to the server, gets a response and displays that response (all in the extension). This annoys me as Messenger and Snapchat share extensions still work when accessed from a quick screenshot!!

How long is Facebook caching the sharing thumbnails?

天涯浪子 提交于 2019-12-01 03:19:34
How long is Facebook caching the sharing thumbnails? I've added a custom thumbnail for my page using: <meta property="og:image" content="/path/to/my/image" /> But on pages my previous image is displayed => it is cached somewhere on FB servers. Any ideas how to flush that cache or how long does it take once FB loads a new image? Check the page with Facebook URL Linter, it seems to reload the thumbnails images in the cache. http://developers.facebook.com/tools/lint azhure Facebook images are cached on a different servers on a different location. According to what I have read, it will take 3 to 5

How to clear share link caching?

泄露秘密 提交于 2019-12-01 01:48:20
I tried to share a link for example http://apps.facebook.com/appname/ under "Update Status" on my profile page. After I modified the content of the application, it still display the caching. I tried to use the http://developers.facebook.com/tools/debug to clear the cache, but the result still the same. Any help would be greatly appreciated. You can use the Object Debugger directly. Just paste your URL into there and hit Debug. You can tell facebook to re-scrape the content using the "scrape=true" post parameter in a POST request to https://graph.facebook.com . More details in the Facebook docs

dismiss share extension custom viewcontroller

*爱你&永不变心* 提交于 2019-12-01 01:44:35
问题 I am trying to create a custom view controller to be used with a share extension. Everything works, but I don't know how to dismiss the custom view controller. Basically I launch my share extension from safari and want to completely dismiss this and return back to the safari view. I know this should not be hard, but I am new to share extensions. Below is my base code. Thanks. Bob // // ShareViewController.swift // ShareExtension import UIKit import Social import MobileCoreServices class

iOS Share Extension crashes when sharing from iOS 11 Screenshot

最后都变了- 提交于 2019-12-01 01:15:56
问题 I'm working on an iOS app that uses a photo share extension, where the image is processed and our main function is triggered. In the simulator on the Photo's app, this works great. I decided to run on the device from the Photo's app and it also works great, but when I screenshot and try to share from iOS 11's new "Quick screenshot" the extension crashes, any ideas? The extension takes an image, sends it to the server, gets a response and displays that response (all in the extension). This