pCloud Partner Program

Line分享按鈕及連結

blog服務 2013/03/06 11:46
views: 290539 times
早期利用 Facebook 的讚及分享按鈕, 現在看到愈來愈多的網站有提供 Line 的分享按鈕, 不過目前是提供手機版的網頁來應用, 官方有說明的文件, 不過只有日本版:

http://media.line.naver.jp/howto/ja/

應用指令如下:

http://line.naver.jp/R/msg/<CONTENT TYPE>/?<CONTENT KEY>


其中的 <CONTENT TYPE> 目前也就 text 而已, 而重點在於 <CONTENT KEY>, 內容主要是代入傳遞的內容, 可以傳入任意不違反 line 傳送內容規定的文字, 記得要用 utf-8 編碼.

實際上應用還蠻簡單的, 就是傳遞訊息出去, 所以一般我們會需要傳遞的就是網頁標題及連結, 而組合的方式就是利用一個換行符號 %0D%0A 這樣, 整個組合起來如下:

http://line.naver.jp/R/msg/text/?test%20message%0D%0Ahttp%3A%2F%2Fline.naver.jp%2F

上面的內容就是傳遞如下訊息:

test message
http://line.naver.jp/

傳到 line 應用程式中的 http:// 連結, 會自動轉成 url 連結的型態, 也就可以正常讓收到訊息的人利用該 url 來進行連結了.

範例連結: http://sample.diary.tw/30/1.htm

該頁利用 javascript 將傳遞的訊息及 url 組合好, 再傳遞到 line app 中, 很容易理解.


試看看在你的手機版網頁上加上 line 的分享吧!

繼續閱讀:
http://sofree.cc/line-share-button/

[2013/5/23 15:39]
補充一下, 利用這樣的重導, 實際上在 MOBILE DEVICE 上的工作狀況又是如何呢?
在 iPhone 上會導入註冊的 protocol: "line:/", 而在 android 上則是會使用 intent:/ 語法來達成呼叫 line 應用程式出來. 

[2015/11/16 13:35]
中文設置說明連結: http://media.line.me/howto/zh-hant/
語法的部份如: http://line.me/R/msg/<CONTENT TYPE>/?<CONTENT KEY>
top

Trackback Address :: http://diary.tw/tim/trackback/1034

  1. Tracked from clock mechanism kit 2017/08/14 22:30 DELETE

    Subject: clock mechanism kit

    Find here the brightest option for clock parts that are now in stock in addition at the best price you can get now!
  2. Tracked from mate tea cup 2017/08/15 00:12 DELETE

    Subject: mate tea cup

    Find the best organic yerba mate bulk currently available now and at great prices. Get it now!
  3. Tracked from Logs for gas fire pit 2017/08/15 04:34 DELETE

    Subject: Logs for gas fire pit

    Find here top quality outdoor gas fire pit kit that's available and currently available today!
  4. Tracked from blog 2017/08/15 08:01 DELETE

    Subject: blog

    Find top quality general contractor services that's now in stock and at great prices today!
  5. Tracked from tenant improvements construction 2017/08/15 11:15 DELETE

    Subject: tenant improvements construction

    See the best tenant improvements construction that are in stock plus at great prices today!
  6. Tracked from how to make yerba mate 2017/08/15 11:18 DELETE

    Subject: how to make yerba mate

    See most popular Yerba Mate Tea currently available in addition at the best price. Get it now!
  7. Tracked from industrial construction services 2017/08/15 19:16 DELETE

    Subject: industrial construction services

    See top facility construction that are now in stock plus on sale today!
  8. Tracked from table 2017/08/16 06:26 DELETE

    Subject: table

    Find the greatest new Dumonds coffee table that's now in stock and at great prices you can get now!
  9. Tracked from replacement quartz clock movements 2017/08/16 09:12 DELETE

    Subject: replacement quartz clock movements

    Find the top available clock kit manufacturer that's in stock and at great prices you can get now!
  10. Tracked from Dumonds Furniture 2017/08/16 09:47 DELETE

    Subject: Dumonds Furniture

    Get the brightest available Dumonds desk currently now in stock in addition on sale you can get now!
  11. Tracked from Dumonds dining room set 2017/08/16 12:26 DELETE

    Subject: Dumonds dining room set

    Find here the greatest available Live Edge Table currently available plus reasonably priced you can get now!
  12. Tracked from Gas fire pit burner 2017/08/16 14:20 DELETE

    Subject: Gas fire pit burner

    See the best Montana Firepit that's now in stock plus at great prices today!
  13. Tracked from recipe yerba mate 2017/08/16 15:20 DELETE

    Subject: recipe yerba mate

    See the best yerba mate bulk that's available plus currently available. Get it now!
  14. Tracked from computer desk 2017/08/16 18:44 DELETE

    Subject: computer desk

    Find the brightest new Wood Slab Desk now in stock and reasonably priced you can get now!
  15. Tracked from aa battery clock movement kits 2017/08/17 06:58 DELETE

    Subject: aa battery clock movement kits

    Find the brightest option for clock kits that's available plus on sale you can get now!
  16. Tracked from Paul Dumond 2017/08/17 11:14 DELETE

    Subject: Paul Dumond

    Find the brightest available Log Furniture that's in stock plus at the best price you can get now!
  17. Tracked from Gas fire pit burner 2017/08/18 06:51 DELETE

    Subject: Gas fire pit burner

    See the best Propane fire pit burner currently available and on sale today!
  18. Tracked from warming trends crossfire burner 2017/08/18 12:19 DELETE

    Subject: warming trends crossfire burner

    See the best Fire pit lava rock currently in stock plus currently available today!
  19. Tracked from Custom Furniture 2017/08/18 13:08 DELETE

    Subject: Custom Furniture

    Find here the best new See More that's in stock in addition currently on sale you can get now!
  20. Tracked from design build firms 2017/08/18 22:21 DELETE

    Subject: design build firms

    Find here professional metal building erection that's available and at great prices today!
  21. Tracked from how to make yerba mate 2017/08/19 10:23 DELETE

    Subject: how to make yerba mate

    Find most popular Yerba Mate Tea that are available now plus at great prices. Get it now!
  22. Tracked from View More 2017/08/19 10:27 DELETE

    Subject: View More

    Get top Warming trends fire pit kit that's available and currently available today!
  23. Tracked from mate tea cup 2017/08/19 22:36 DELETE

    Subject: mate tea cup

    Find here top quality yerba mate nutrition facts that's available and on sale. Get it now!

Write a comment


PREV : [1] : ... [122] : [123] : [124] : [125] : [126] : [127] : [128] : [129] : [130] : ... [467] : NEXT



Nextbit Robin 5.2吋六核心智慧型手機 Microsoft Office 365 中文家用版PKC (無光碟)
ASUS華碩 AC1900 雙頻無線路由器 RT-AC68U 美國 VORNADO 533 渦流空氣循環機 (黑色)
御茶園 每朝健康綠茶(650mlx24入) 每朝健康 雙纖綠茶(650mlx24入)


 Waiting...