How views connected using url - swift

Is there any way I can link my app to a certain url that can direct it to a certain views with specified informaion
for example : twitter https://twitter.com/naifco/status/0101010101010101?s=21 // just a fake url
will direct you to a certain tweet in the application.

I think you will solve your problem using URL Scheme, here is the Apple documentation link for that:
https://developer.apple.com/documentation/uikit/inter-process_communication/allowing_apps_and_websites_to_link_to_your_content/defining_a_custom_url_scheme_for_your_app
Hope I helped you!

Related

twitter hyperlink expand

I am working on Twitter Application, in it I get user tweets and if user share URL in it then it open in WebView.
But problem is that Twitter returns hyperlink like, http://t.co/eleekj4F.
I want to convert it in its original form as I have posted like http://www.abcd.com/testing.html
Twitter Developer See other similar threads also in the same forum.
Use expanded_url instead of url from returned entities.
I know there are some applications online that let you retrive the original url, you could maybe parse the response from them.
http://www.makeuseof.com/dir/untiny-extract-original-link-short-url/
I think you could also do it, by doing a http request to the short url and see what adress you are redirected to.

Facebook article sharing from mobile device

I understand that sharing article from desktop can utilize the following URL
http://www.facebook.com/sharer.php?s=100&p[title]=titlehere&p[url]=http://www.yoururlhere.com&p[summary]=yoursummaryhere&p[images][0]=http://www.urltoyourimage.com
However, when I opened the URL in Ipad or mobile, I am getting an error saying "Sorry, something went wrong. We're working on getting this fixed as soon as we can."
An alternative is to use m.facebook.com/sharer.php, but it seems that the parameter that I can use here is limited (I cannot specify the title or image).
Any hint on how I can share an article from mobile devices and getting it similar as the one using www.facebook.com/sharer.php ?
Thanks a bunch!
The only property that I can see that the mobile sharer accepts is "u" for url
i.e. http://m.facebook.com/sharer.php?u=www.lagan-press.org.uk
Please correct me if I am wrong.
http://m.facebook.com/sharer.php?s=100&p[title]=titlehere&p[url]=http://www.yoururlhere.com&p[summary]=yoursummaryhere&p[images][0]=http://www.urltoyourimage.com
Use m.facebook.com, not www.facbook.com.

Custom URL for a Facebook App?

(Hopefully) simple question: How do you configure a custom URL for your Facebook App? I know right now it works as https://apps.facebook.com/[APP_ID]/, but is it possible to make/request a URL of your choosing? For example, https://apps.facebook.com/chickenwings/
Thanks!
Yes, create a namespace in your app settings.

Facebook like and recommendation button

I am integrating facebook like/recommend button on website "panjabiwave.com"
For recommend there is url ex. panjabiwave.com/video/22
Link for checking the recommendation is panjabiwave.com/videorecommend.
But the problem is when a user recommend a video .it is not reflected on the
panjabiwave.com/videorecommend link
Please suggest where i am doing wrong
Thx in advance
Recommend is only used for one single url at a time. There is no way to specify the url being recommended and then another for a specific url that the user will land on. Your best bet for passing the video # to the videorecommend page like
http://panjabiwave.com/videorecommend/22 which then can disaply the correct og meta tags (ogp.me) for the video that's really located at http://panjabiwave.com/video/22

How to prevent others from using my facebook application?

I just created a Facebook application that basically creates a new Tab on my Facebook-profile-page and loads contents from my website in an inline frame. Now I got to the point that I added the application to my profile page with a simple link like http://facebook.com/add.php?api_key=APP_ID&pages=1. But how can I prevent others from just doing the same and using my app on their pages then?
Thanks in advance!
Aha! You know the page that it is supposed to belong to, so hard code that in your app's code and you can check the page id coming in from the signed_request and see if that page id is yours. If not, send down not permitted in your response HTML. If it is your page, then response down the good HTML. :)
For more information on signed_request see: https://developers.facebook.com/docs/authentication/signed_request/