How can I post a text string having hyperlink to some URL on the facebook wall - objective-c

I am developing an application that wants me to design a functionality of posting an audio file to the wall and also there is a message along with the audio file. I have successfully posted/shared the audio file to the wall but now I want some text of my message should have a hyperlink to some URL.
Somebody plz help to get ou

You can send the link as an attachment to the wall post.
Sample C# code : http://facebooksdk.codeplex.com/Thread/View.aspx?ThreadId=235649&ANCHOR
You can find similar code for the language of your choice. Just google it.

Related

How can I access a embedded video that doesn't have a url in HTML

I was trying to clone a website so there was a video element in the page so I tried to find it and download via inspect but I it does'nt show a ref link .. it shows like it's stored in a folder or something can anyone suggest how can I download that video
this is the code embedded with video (WEBSITE: wolves (https://www.wolves.co.uk/)
CODE :
<div class="hero__video-wrapper" data-desktop-video="/media/27694/boubacar-leeds.mp4" data-desktop-video-type="video/mp4">
I tried by inspecting elements to find the video url but couldn't find any url all i found is a folder location . I was expecting to download the video for educational purposes.
"It shows like it's stored in a folder or something can anyone suggest how can I download that video"
Solution:
You're very close.
Just prepend https://wolves-cdn.azureedge.net/ to the URL shown in data-desktop-video=.
example link for your video:
https://wolves-cdn.azureedge.net/media/27694/boubacar-leeds.mp4
"I was expecting to download the video for educational purposes"
Oh shuddup and just steal the copyrighted online content already...!!!
Just joking. I'll help you cos I think that video is downloadable under "Fair Use" policy...

Where would i find the code to edit an iframe ( youtube video) in shopify for a blog?

Where would I find the code to edit an iframe (youtube video) in Shopify? Right now in a blog it is not resizing in mobile and looks half cut off. I have looked in the article folder, blog folder, theme.liquid. I've checked everywhere. I don't even know what code to send you guys so you can help me figure it out. Basically what I am trying to do is find the code and then somehow resize it so it doesn't look cut off in mobile view. Does anyone know how to do that?

In-app messenger api with prepopulated text

Many apps used an in-app Facebook messenger api to share referral link directly to messenger. They also use prepopulated text with a link.
My question is fairly simple : How do they do it ?
I could not find any documentation about it, the closest thing I found is the send dialog api which doesn’t allow any prepopulated text.
Example (Lime app):
You need a Link not share, try this package or find something similar
https://www.npmjs.com/package/react-native-facebook-messenger

How to send media files on whatsapp programmatically using click to chat feature?

I have to use whatsapp's click to chat feature for automating the process of sending messages to unsaved numbers. I am currently using selenium to automate the process. I am able to send text messages only for now. I was wondering that it might be possible to send other media files as well like images and videos.
There are 2 unused parameters in my url of click to chat feature, "source" and "data". I thought using these might enable me to send media files but I Haven't been able to do it yet.
Example URL for one of my click to chat messages:
https://web.whatsapp.com/send?phone=phoneNumHere&text=Hi&source=&data=
Can anyone confirm that either its possible or not. If its possible what would be the right way to do it?
Thanks
Similar question: Whatsapp Automated Bot not able to search in WhatsApp Contact List
Send images, videos and docs using Selenium:
//To send attachments
//click to add
driver.findElement(By.cssSelector("span[data-icon='clip']")).click();
//add file path
driver.findElement(By.cssSelector("input[type='file']")).sendKeys("FilePath");
//click to send
driver.findElement(By.cssSelector("span[data-icon='send-light']")).click();
I know it's too late, I just have to add that Whatsapp Web and Whatsapp Desktop accept paste inputs, thus if you can get your picture to the memory (I did it with VB.net took 5 mins to accomplish after a bit of googling) you can just send a paste order and it'll load it in and require and ENTER send key from you.
Part1: Sending messages to unsaved contacts
Sending media to unsaved numbers is quite a difficult task but not impossible. You can surely find XPath by text.
Part2: Yes media can be sent to contacts. I have done that in my project link : https://github.com/shauryauppal/PyWhatsapp. By using PyAutoIt you can send Pictures, PDF, Videos to the selected contacts.
Since uploading part is not the automation of web browser we auto windows using AutoIt and select the path of image/video/file to send to the user.
autoit.control_focus("Open","Edit1")
autoit.control_set_text("Open","Edit1",(PATH_OF_IMAGE_TO_SEND) )
autoit.control_click("Open","Button1")
This is just the crux of the implementation. Do refer my repo in case of more understanding.
PS: Don't forget to star repo or give credits.
Check answer Link for more info, where to download AutoIt from.
Coding Working Fine.
//To send attachments
//click to add
driver.findElement(By.cssSelector("span[data-icon='clip']")).click();
//add file to send by file path
driver.findElement(By.cssSelector("input[type='file']")).sendKeys("FilePath");
//click to send
driver.findElement(By.cssSelector("span[data-icon='send-light']")).click();
I was having the same issue but right after fixing it, I made a python wrapper so that it helps more people having the same issue.
In case you're interested to explore more about the wrapper, here is a link
https://github.com/Kalebu/alright
Here is how to send a message to media files and message to unsaved contacts
>>> from alright import WhatsApp
>>> messenger = WhatsApp()
>>> messenger.find_user('255-74848xxxx')
>>> messenger.send_message("I wish you a Merry X-mass and Happy new year ")
>>> messenger.send_picture('path-to-image',"Text to accompany image")
Sending to Multiple unsaved contacts
>>> numbers = ['2557xxxxxx', '2557xxxxxx', '....']
>>> for number in numbers:
messenger.find_user(number)
messenger.send_message("I wish you a Merry X-mass and Happy new year "

How to get information from a website into my tableview row

The application I'm making is similar to YouTube. It is a TableView that has a custom cell that displays a screenshot of the video, title, duration, and rating. I think I'm able to create this custom cell, my question is what to use to get the information from the website? Thanks for the help, I'm still inexperienced.
Update: Maybe I didn't word it properly, but I meant to get the video and information from a different web site that isn't YouTube for its videos, sorry for the confusion.
You use YouTube's API.